Log axis

Hello,
I am a bit puzzled by the scaling of my log scale...
Say the range is -.2 (or zero) to 17788.
1) Changing the map mode to log I would have expected an error, according to the documentation:
Use a logarithmic scale for the graph axis. The minimum axis value must be greater than zero.
Obviously, it must not.
2) Having the axis autoscaled, the smallest label is 18, with intermediate labels of 100, 1000, 10000, and the largest label is 17788.
Why is the smallest label 18 and not 10, or 1, or 0.1??
I have Auto Divisions but no Loose Fit.
Thanks, Wolfgang
Solved!
Go to Solution.

Hi Wolfgang,
The reason it is being coerced to such a high value is because you have Loose Fit (ATTR_XLOOSE_FIT_AUTOSCALING) enabled for autoscaling and too high of a Loose Fit AutoScale Unit (ATTR_XLOOSE_FIT_AUTOSCALING_UNIT). The autoscaling unit is the log factor that the autoscaling will use for rounding. You probably have the autoscaling unit set to 2 which is the default. This means that it will round to the next higher for max and next lower for min value that is a factor of 100. This works great for a linear scale, but you can see an obvious problem with this design for log scales. By the very nature of the log scale, it does not make sense to round based on the same factor.
The reason you are getting a min value of 18 is because the true min of the data is smaller than the autoscaling loose fit factor. And since it cannot use 0 as the min since it is an invalid value for log, it instead defaults to 1/1000 of the max.
There are a few issues here with loose fit on a log scale, so I have filed a bug report that you can track with ID: 352509.
In the meantime, I found that disabling loose fit allows the autoscale to work correctly even with negative data values. However, if you want to have a loose fit (i.e. you min and max on the scale have a buffer around the min and max of the data), then you will have to implement this yourself. You can use autoscaling when plotting data to automatically detect the max and min of the data, then switch to a fixed scale so that you can then add the buffer region to create a loose fit. Or you can leave autoscaling off and calculate the min and max values yourself.
National Instruments
Product Support Engineer

Similar Messages

  • Bubble chart Log axis

    Hi,
    I am drawing a bubble chart with two types of axes: Linear and Log. The bubble points do not get plot correctly in case of Log Axis. Linear axis show fine though.
    Any clue why it might be showing wrong ?
    Thanks,
    Tanu

    I got the solution myself !!!
    I was using Flex 4 SDK which has this bug in LogAxis. I used Log Axis of Flex SDK 3.0 and it ran perfectly fine.:)
    Tanu

  • Log Axis Graph Question

    Does anyone know if it is possible to modify the the log axis
    to set arbitrary limits.
    By default the extents are 1,10,100,1000 etc. I want to
    create an audio test chart with lower limit of 20 Hz and upper
    limit of 20 kHz.

    I know this was a while ago now, but did you ever get anywhere with your search for a better Log axis? I'm looking for exactly the same thing.

  • Log Axis value?

    Hello
    The X axis I think in the display panel logQ base Q, but the X axis value or the logQ this calculated value, for example: the requirement that correspond to the 1000 in the log1000 X axis,. Would you please tell me how to do? As shown in Fig.
    Thank you

    I'm not sure if I understood you correctly, but every single axis in a graph can have a log scale: you can set it this way:
    The result is as follows:
    If this is not your problem, can you rephrase your questio so that we can understood what you need?
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Linear Plot on a Log axis

    Hello,
    what I want to do is quite unusual (I think) so I will explain the context :
    I made a program which capture data off a spectrum analyser, correct these data with antenna correction, and use VIs "Limit Specification.vi" and "Limit Testing.vi" to interpolate my datas with a Pattern. The aim is to verify that the datas from the analyser don't get over the pattern.
    Everything is then put in a Waveform Graph, with a Logarithm X Scale.
    BUT the problem is that when I put X scale on "log" in graph properties, my Pattern representation is transformed in a Log-horrible-thing. I know it's working as intended, but my program isn't unusable because of this.
    How can I do to make the interpolation "Linear" in a Log scale ? Is it possible using both limits VIs, or not ? I hope yes..
    Here are some screenshot of the thing (can't join my VI, it's property of the company I work for (i'm in placement)).
    Thanks for your future help !
    Message Edité par JDlabview le 05-27-2010 10:19 AM
    J.D.
    French Labview beginner
    N'oubliez pas de complimenter les bonnes réponses - Don't forget Kudos for good answers
    Solved!
    Go to Solution.

    Thank you sooooo much Felix, you made my day !!!
    I post the solution if someone needs it 
    1- I transform my waveform points in log10 base :
    2- Same with my pattern (limit) points :
    3- I use the Limit specification and Limit testing VIs with these new X points (and dt=-1 because my waveform isn't linear anymore)
    4-And finally, I use 10^x function and change my Waveform out of Limit Testing, in an XY graph :
    If moderators find this post inconvenient because too big or useless, no worry to delete it.
    Thanks to all of you LabView and NI experts to help beginners in their development
    J.D.
    French Labview beginner
    N'oubliez pas de complimenter les bonnes réponses - Don't forget Kudos for good answers

  • Legend, error bars, 2nd y axis etc

    Hello all,
    Measurement Studio is a powerful program. But it's graphing functions need improvement. As a scientific tool, for example, the lack of plotting error bars in CWGraph is unforgivable. And many other essential functions for producing decent graphs are missing. So I attempted to try to fill in some gaps. The attached program intends to do following:
    1) Plots x- and y error bars.
    2) Legends for data sets,
    3) Graph saving,
    4) Graph printing
    Notes:
    1)Error bars are not plotted symmetrically. They can be improved.
    2)Legends can be improved by making them automatically located in the empty part of the plotting area. And the routine doesn't work well for the logarithmic scale.
    3)Since the point sizes are tied to line size, it is impossible to use larger symbols without increasing the size of the lines!
    4)y axis and the 2nd axis labels as rotated have terrible looking fonts.
    5)When printing to a pdf file, filename can be automatically set to a default filename so that a dialog box can be avoided.
    I hope the attached program is useful.
    Sincerely,
    Cem
    P.S.
    The program plots 5 data sets. 4 of which use left y-axis, the last one uses the right axis. Only y error bars are plotted. (x error bars optional). The legend text appears on the left upper corner. User can enable/disable legend, lines connecting data points, error bars, and grid lines. When log axis is chosen, the legend placement is screwed up.
    Attachments:
    plottest.zip ‏6 KB

    Thanks for sharing this with us Girit. I'm sure this will help out alot of people on the forum.
    For your legend, this document provides another way you might be able to create a legend and not have to deal with finding an empty place on the graph.
    Thanks again
    Bilal Durrani
    NI

  • Logging a web service

    Hi folks,
    i'm trying to incorporate logging into my web service development environment but cant seem to get it to work. I'm using AXIS RC1.2 and tomcat 4.
    I have put a log4j.properties file into C:\Program Files\Apache\jakarta-tomcat-4.1.31\webapps\axis\WEB-INF\classes and remove the one in axis.jar. This is what it looks like:
    # Log4j configuration file.
    # Set root logger level to DEBUG and its only appender to A.
    log4j.rootCategory=DEBUG, A
    # A is a DailyRollingFileAppender
    log4j.appender.A=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.A.file=C:\Program Files\Apache\jakarta-tomcat-4.1.31\logs\Axis.log
    log4j.appender.A.datePattern='.'yyyy-MM-dd
    log4j.appender.A.append=true
    log4j.appender.A.layout=org.apache.log4j.PatternLayout
    log4j.appender.A.layout.ConversionPattern=%-5p %d{ISO8601} [%t] - %m%n...from here I have to import log4j classes and declare a variable in the class I want to log like this
    public class DOMGetFlightsXMLImpl implements GetFlightsXMLIF{
          //logger
         static Logger logger = Logger.getLogger(DOMGetFlightsXMLImpl.class);
          private Document doc;
          private Element root;...and I should be able to log with simple logger.debug(" debug message"); right? But sofar there's nothing like C:\Program Files\Apache\jakarta-tomcat-4.1.31\logs\Axis.log

    I had problems with log4j too.
    OK, one thing you haven't done is set the priority for whatever category your logger is in. With XML-based log4j configuration, I do this with:
      <category name="org.jacksonwest">
        <priority value="DEBUG"/>
      </category>...and all my classes are under 'org.jacksonwest'. I'm pretty sure this is necessary. I don't know how to do it with the properties-style config file - the XML one is way better I reckon :)
    What you could also do is turn on debug info for log4j initialisation by passing the option "-Dlog4j.debug" to Tomcat. This tells you what appenders, categories etc log4j is creating.
    I've put my full log4j config down below in case that helps.
    -Tim
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration debug="true">
      <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
        <param name="Target" value="System.out"/>
        <param name="Threshold" value="DEBUG"/>
        <layout class="org.apache.log4j.PatternLayout">
          <!-- <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/> -->
          <param name="ConversionPattern" value="THPSERVER  : %5L %-20C{1}:%20M : %m%n"/>
        </layout>
      </appender>
      <category name="org.jacksonwest">
        <priority value="DEBUG"/>
      </category>
      <root>   
        <level value="DEBUG"/>
        <appender-ref ref="CONSOLE"/>
      </root>
    </log4j:configuration>

  • Axis and NoClassDefFoundError

    We have software that was developed using Axis to connect to a webservice. It
    works fine. However, when we add the software to another system that is run under
    weblogic 5.1 we get the following error when the axis classes are trying to be
    invoked:
    java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: java/lang/reflect/InvocationHandler
    Any ideas as to why this would happen?
    Thanks,
    Tim

    Hi Tim,
    I don't really follow what you are saying. Are you saying that you are receiving
    these exceptions in an instance of WLS 5.1, when you deploy the Apache Axis stuff
    in it? If so, here's the JAVACLASSPATH and WEBLOGICCLASSPATH I use:
    JAVACLASSPATH=d:\bea\WLS\5.1\lib\weblogic510sp9boot.jar;c:\beasys\licenses\WLS;d
    :\bea\WLS\5.1\classes\boot;d:\bea\jdk130\lib\rt.jar
    WEBLOGICCLASSPATH=c:\apache\xalan\2.2.0\bin\xerces.jar;c:\apache\xalan\2.2.0\bin
    \xalan.jar;d:\bea\WLS\5.1\lib\weblogic510sp9.jar;d:\bea\WLS\5.1\lib\persistence\
    WebLogic_RDBMS.jar;d:\bea\WLS\5.1\lib\weblogic-tags-510.jar;d:\bea\WLS\5.1\class
    es;d:\bea\WLS\5.1\lib\weblogicaux.jar;.\webservices;.\webapps\axis\WEB-INF\lib\c
    ommons-logging.jar;.\webapps\axis\WEB-INF\lib\log4j-1.2.4.jar;.\webapps\axis\WEB
    -INF\lib\axis.jar;.\webapps\axis\WEB-INF\lib\jaxrpc.jar;.\webapps\axis\WEB-INF\l
    ib\saaj.jar;.\webapps\axis\WEB-INF\lib\tt-bytecode.jar;.\webapps\axis\WEB-INF\li
    b\wsdl4j.jar;.\webapps\axis\WEB-INF\lib\xmlsec.jar
    I copied the Apache Axis stuff to a directory under my WLS 5.1 install, so I can
    modify things without affecting the original files. My startWebLogic.cmd is in:
    d:\bea\WLS\5.1\apache
    The weblogic.properties file for my server is in:
    d:\bea\WLS\5.1\apache\webapps
    Here's all I have in there:
    ######## START OF weblogic.properties #########
    weblogic.httpd.webApp.axis=webapps/axis
    weblogic.security.ssl.enable=true
    weblogic.httpd.logFileName=../logs/axis/access.log
    weblogic.httpd.logRotationType=size
    weblogic.httpd.maxHttpHeaderSize=4096
    weblogic.system.logFile=../logs/axis/weblogic.log
    weblogic.jdbc.logFileName=../logs/axis/jdbc.log
    weblogic.password.axisadmin=password
    ######## END OF weblogic.properties #########
    The Axis web application is in exploded into:
    d:\bea\WLS\5.1\apache\webapps\axis
    That directory contains:
    WEB-INF
    index.htm
    happyaxis.jsp
    StockQuoteService.jws
    I am able to run all the samples, and server-config.wsdd is in the WEB-INF directory.
    I think I had to change code in the happyaxis.jsp, to get things to work. I have
    attached it.
    The d:\bea\WLS\5.1\apache\webapps\axis\WEB-INF\lib directory contains:
    axis.jar
    commons-logging.jar
    jaxrpc.jar
    log4j-1.2.4.jar
    saaj.jar
    tt-bytecode.jar
    wsdl4j.jar
    xmlsec.jar
    Regards,
    Mike Wooten
    "Tim " <[email protected]> wrote:
    >
    We have software that was developed using Axis to connect to a webservice.
    It
    works fine. However, when we add the software to another system that
    is run under
    weblogic 5.1 we get the following error when the axis classes are trying
    to be
    invoked:
    java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
    java/lang/reflect/InvocationHandler
    Any ideas as to why this would happen?
    Thanks,
    Tim[happyaxis.jsp]

  • Logarithmic Scale disabled

    I am not able to select the logarithmic scale. I am trying to plot a simple bar graph in 3D and the logarithmic scale option in grayed out or disabled. Can anyone tell me what I am doing wrong?

    Hello
    Welcome to the club.
    It seems that you just failed to search in the Help.
    Searching for the keyword "logarithmic' you would have discover:
    +*Formatting the Value Axis*+
    +To display values on the value axis as logarithmic values, choose Logarithmic from the X-Axis or Y-Axis pop-up menu, depending on the chart. *This option is available only for 2D bar/column charts that aren’t stacked and for line charts*. You can’t plot negative values on the log axis.+
    Remember, the Help is not reserved to helpers, _it is also for you_.
    Yvan KOENIG (from FRANCE samedi 26 janvier 2008 5:23:22)

  • Write to audit log from Axis Handler

    Hi guys,
    Using PI 7.11 SP 04 I have deployed the com.sap.aii.af.axisproviderlib.sda containing the libraries for Axis.
    This is deployed fine and I can write my Handlers without trouble.
    There is only 1 issue bugging me and that is the writing to the Adapter Audit Log. In SAP Note 1039369 FAQ XI Axis Adapter it is described how to write to the Audit log.
    I can successfully write to the Channel monitor. But when I try to write to the Audit log data is still just written to the Channel monitor and not the audit log.
    So what I have done is:
    StatusAgent sa = (StatusAgent) getOption(Constants.MONITOR_AGENT_KEY);
    Hashtable ht = getOptions();
    ht.put("audit", Boolean.TRUE);
    ht.put("pivoted", Boolean.TRUE);
    sa.reportEvent(Status.OK, "This should be written to audit log but is written to channel monitor", ht);
    sa.reportEvent(Status.ERROR, "This should also be written to audit log but is written to channel monitor", ht);
    If i print the content of my hashtable in the channel monitor I can see that my entries are put into the table just fine. The 'audit' entry just seems to be completely ignored.
    Anyone have and suggestions?
    Regards,
    Daniel

    Hi Guys,
    I need to know what JAR file i need to download for the following packages from SAP PI.
    import com.sap.aii.axis.monitor.Status;
    import com.sap.aii.axis.monitor.StatusAgent;
    import com.sap.aii.axis.utils.Constants;
    I am doing AXIS custom modules and i need to write to the PI 7.1 Audit Logs.
    Thanks in advance.
    Raj

  • Log scale of the axis and the best-fit line

    I try to plot a graph and set the scale of the x-axis to log scale and then i try to plot a linear trendline (best fit line). but the linear trendline does now show on the graph. but if i set the axis scale to linear, then the trendline does show.  i will need my graph in the log scale and also a linear best fit line. please help me out

    0
    100
    3.00E-09
    71.52
    1.00E-08
    57.3
    3.00E-08
    39.15
    1.00E-07
    24.13
    3.00E-07
    14.77
    1.00E-06
    7.22
    i meant you these data, and left column is x-axis and gonna use log scale for the axis. the right column is the y axis. and then i need a best fit line for this graph.. hope you can help me

  • Logging of SOAP messages at server side, Axis 1.2, NO SoapMonitor / TCPMon.

    Hello,
    I�m looking for a way to log all SOAP communication at a Axis Server.
    I want to log the messages into my logdatabase or to files at least.
    I am not interrested af SOAPMonitor or TCPMonitor, those are good tools but not for my purposes.
    Anyone can help me out?

    Hi,
    You should have a look at the Axis users guide, under "More deployment - Handlers and Chains". This part describes a LogHandler to be included in the WSDD that basically logs information about the requests and/or responses.
    Also look at the class org.apache.axis.handlers.LogHandler

  • Log scaling intesity chart y-axis

    is it possible to change the scaling of the y-axis on an intesity chart to log scaling?

    Hi DNyg,
    This is actually a known issue in LabVIEW and CAR (corrective action request 372856) has been submitted to our research and development team. I have gone ahead and added this post to the CAR so they can see that more people have encountered this issue. In the meantime, a potential work-around would be to manually scale your Y-axis data logrithmically before wiring it into your intensity chart.
    Paul C
    Applications Engineer

  • TFA STFT Spectrogram: log scale on frequency axis

    Hi,
    I'm trying to get my spectrogram to display a logarithmic scale on the frequency axis, but whenever I go to the graph properties->y-axis, turn off autoscaling, check the log scale box, hit okay, and then run the vi, I still have a linear scale.  I tried creating a property node for the spectrogram's y-axis and setting the scale to logarithmic, but this doesn't work either.  Does anyone have any suggestions? 
    Thanks a lot,
    Chris K.
    Attachments:
    Front Panel.png ‏267 KB

    log (0), log (1), log (2), log(3), ... ?
    The Intensity graph uses the array indices (0,1,2,3,...) for the axis, not the values of Y.  If your frequencies are 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000, ..., you would need an array with >=1001 elements to get the axis values where you wanted them and it would still plot the axis linearly.  You can certainly put the Z-values for frequency 10 in the 4th column of the array.  To get the labels to display the Y-axis frequencies might require overlaying an X-Y graph with logarithmic mapping of the Y-axis on the Intensity graph.  By making the appropriate parts transparent, you should be able to get the Y-axis display you want.  Tedious, but probably not too difficult.
    Lynn

  • Changing the x-axis crossing point on a log y-axis

    Is it possible to change the point at which the x-axis crossing a log y-axis?
    I'd like the origin to be 0.1, not 1, and I'm losing hours of my life trying to work out how to do it.
    Hopefully it will be something easy that I have missed...
    ...I'd rather look foolish than buy Microsoft office.

    I have another idea for you.
    1) Multiply all of your numbers by 10 or whatever factor of 10 (i.e., 100 , 1000, etc.) is necessary so that none of them are smaller than 1.
    2) Take the LOG of those new numbers.
    3) Plot the result of (2) using a linear Y axis. Get your chart looking like you want it with the min, max, and number of Y axis gridlines you want. Each number on the Y axis needs to be an integer, no decimals.
    4) Choose a custom format for the Y axis numbers. Delete the format that is there and add a new format for each of the numbers on the axis. For example, lets say you multiplied by 100 in the first step above. The gridline with the number "0" should really be "0.01" so make a format for "if value is 0" and type in 0.01 as the format. Repeat for the other numbers (1 becomes 0.1, 2 becomes 1, 3 becomes 10 ,etc).
    Again, kind of a pain. I think I like this solution better, though. The chart looks better in the end and you can do multiple data series on the same chart.

Maybe you are looking for

  • Best USB 2.0 Hub to use with iPods and Mac Mini 2009?

    I am using my Mac Mini as my iTunes station, and I have five iPods that are connected to my master iTunes Station. Recently I needed to add a USB drive to add more space to the mini. Along with a wireless keyboard ( that uses a USB transmuting dongle

  • Contacts no longer in sync between iPhone and Mac after creating iCloud email address

    A few days ago, I was asked (by iCloud) to create an iCloud email address because it would be "better" than the email address I've been using. Since then, most of my contacts have disappeared from my iPhone 4s. I have noticed that the newest contacts

  • Not able to do GR/Confirmation

    Hi Experts, We are using Extended classic scenario 5.0 . For a particular PO we are not able to do GR . And in the confirmation screen that PO was not get displayed. From the PO, the option " Confirm Performance of Service/Goods Receipt " was got che

  • Font rendering issue & multimedia keys not working

    Hi, yesterday i switched to KDEmod 4.1 and I have two major problems... One is font rendering issue... I did not change anything in my font-related packages (cairo, freetype, fontconfig, libxft) and i have to add that this setup worked perfectly in K

  • How do I get my feed to validate?

    http://www.sportbiketshirts.com/news_files/page6.xml I don't understand anything about RSS or XML. I simply want to produce a simple podcast. I've tried creating this podcast more than once and I can not get the feed to validate through Apple's Feed