Axis labels / scaling in CVI2013 SP1

It appears that the scaling of axes has been changed in SP1 of CVI2013...
Following scenario:
linearly scaled y axis, two plots, according to the data axis range should start at zero (autoscaling)
The green plot on the graph remains unchanged, but I can add a large value (10000) to the orange plot, in this case the plot actually shows the expected value (left figure below)
If I undo the addition of the constant offset to the orange plot, i.e. subtract 10000 from all y values of the orange curve, the lower axis range is some small value, this depends... say 1e-63 or so (right figure below, both curves overlap so only the green one is visible)
This does not make sense to me.
Of course there will be rounding errors involved, so after adding and subtracting some value the original baseline may not be exactly zero anymore, so lets assume it's a little bit larger, 1e-63. BUT THE GREEN LINE HAS NOT CHANGED, and obviously the minimum of the green line is zero... And zero is smaller than 1e-63...
No, it's not April 1st

Hello Wolfgang,
Could you post the code code that reproduces this problem.
I tried the following code:
double x[3] = {0.000001, 0.0005, 0.001};
double y_1[3] = {0.0, 0.0, 0.0};
double y_2[3] = {10000.0, 10000.0, 10000.0};
int i;
int plot_handle = 0;
PlotXY(panelHandle, PANEL_GRAPH, x, y_1, 3, VAL_DOUBLE, VAL_DOUBLE, VAL_FAT_LINE, VAL_NO_POINT, VAL_SOLID, 1, VAL_GREEN);
plot_handle = PlotXY(panelHandle, PANEL_GRAPH, x, y_2, 3, VAL_DOUBLE, VAL_DOUBLE, VAL_FAT_LINE, VAL_NO_POINT, VAL_SOLID, 1, VAL_YELLOW);
for(i = 0; i < 3; i++)
y_2[i] -= 10000.0;
Delay(2);
DeleteGraphPlot(panelHandle, PANEL_GRAPH, plot_handle, VAL_IMMEDIATE_DRAW);
plot_handle = PlotXY(panelHandle, PANEL_GRAPH, x, y_2, 3, VAL_DOUBLE, VAL_DOUBLE, VAL_FAT_LINE, VAL_NO_POINT, VAL_SOLID, 1, VAL_YELLOW);
 My graphs look like this:
Thanks,
Constantin

Similar Messages

  • Line chart x-axis label overloaded with labels

    Hi,
    I have a Line chart filled by a large resultset (hundreds of rows). Each row contains a decimal value and a timestamp. The interval between timestamps is short so it is impossible to plot every single date/time in the x-axis label because there is no space.
    I would like to hide the the x-axis label for most rows and plot this label for each x rows. Something like this:
      18/12/2009 09:00            18/12/2009 10:00           18/12/2009 11:00            18/12/2009 12:00
            |---------------------------|---------------------------|---------------------------|
    In the previous x-axis example there are many timestamps between 18/12/2009 09:00 and 18/12/2009 10:00 but they are not plotted in the chart. It is possible to do something like this in MII charts?
    Thank you,
    Wilson Freitas
    Vetta Technologies

    Hi,
    I think Michael is right about the Ticks per label parameter. Looks like it is not working for me because the chart data binding is not behaving as expected.
    The chart rowset is composed by two fields: decimal and date time. The date time field is already converted to string. The rowset comes from a BLS transaction.
    I think this forum has no support for file upload so I will add links to the xMII workbench screenshots so you guys can see my chart/query configuration.
    This is the XACUTE Query used by the chart: http://www.vetta-group.com:8080/imgs/xacute_config.PNG
    This is the Line Chart configuration:
      - Chart area:http://www.vetta-group.com:8080/imgs/chart_area.PNG
      - Data mapping: http://www.vetta-group.com:8080/imgs/data_mapping.PNG
      - X-axis: http://www.vetta-group.com:8080/imgs/xaxis.PNG
      - Y-axis: http://www.vetta-group.com:8080/imgs/yaxis.PNG
      - Server scaling:http://www.vetta-group.com:8080/imgs/server_scaling.PNG
      - Data series:http://www.vetta-group.com:8080/imgs/data_series.PNG
    The chart row set is:
    <?xml version="1.0" encoding="UTF-8" ?>
    <Rowsets DateCreated="2010-02-02T20:50:08" EndDate="2010-02-02T20:50:07"
         StartDate="2010-02-02T19:50:07" Version="12.0.8 Build(24)">
         <Rowset>
              <Columns>
                   <Column Description="" MaxRange="1" MinRange="0" Name="TAG_TIMESTAMP"
                        SQLDataType="1" SourceColumn="TAG_TIMESTAMP" />
                   <Column Description="" MaxRange="1" MinRange="0" Name="TAG_VALUE"
                        SQLDataType="8" SourceColumn="TAG_VALUE" />
              </Columns>
              <Row>
                   <TAG_TIMESTAMP>01/12/2009 12:00:00</TAG_TIMESTAMP>
                   <TAG_VALUE>80.723414730584</TAG_VALUE>
              </Row>
              <Row>
                   <TAG_TIMESTAMP>01/12/2009 12:23:59</TAG_TIMESTAMP>
                   <TAG_VALUE>87.33149769706</TAG_VALUE>
              </Row>
              <Row>
                   <TAG_TIMESTAMP>02/12/2009 12:47:59</TAG_TIMESTAMP>
                   <TAG_VALUE>86.966843701221</TAG_VALUE>
              </Row>
              <Row>
                   <TAG_TIMESTAMP>02/12/2009 01:11:59</TAG_TIMESTAMP>
                   <TAG_VALUE>83.989991258174</TAG_VALUE>
              </Row>
         </Rowset>
    </Rowsets>
    When I run the chart I get this result: http://www.vetta-group.com:8080/imgs/chart1.PNG
    As you can see the chart has no X-Axis labels ans I need to add the date/time to the X-axis. If I add the field to "X-Axis label columns" the field values are ploted but the parameter "Ticks per label" is ignored and hundreds of labels are ploted together and is impossible to read them. I think the "Ticks per label" parameter only works for fields added to Labels columns (in data mapping). The problem I am facing is: when I add the date field (http://www.vetta-group.com:8080/imgs/data_mapping2.PNG) to Label columns I get an empty chart like this: http://www.vetta-group.com:8080/imgs/chart2.PNG
    What am I doing wrong?
    Thank you

  • Setting the title font and axis labels in a graph created with the Report Generation Toolkit

    I'm using the LabVIEW Report Generation Toolkit for Microsoft Office to generate Excel worksheets containing plots. Unfortunately, the default font size used in the plots is huge (see attached worksheet). I was able to use Excel Set Graph Font.vi to reduce the size of the axis labels, but there does not appear to be a function to do this to the title and legend. In addition, there does not appear to be a function to set the axis text labels. Before I write my own, has NI released additional functions to perform these tasks?
    Thanks for your help,
    Zach Lerner
    Software Engineer
    OnWafer Technologies, Inc.
    Attachments:
    Test1_-_embedded_graph's_title_and_legend_font_is_huge.xls ‏14 KB

    Hello Zeidan
    The graph title and legend font sizes can be changed by accessing a low level VI (Excel_Insert_Chart.vi) that is part of the excelsub.llb that is located at (C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\addons\_office). This VI is called dynamically from within the Excel Insert Graph.vi and it uses VI server technology to access the Excel exposed properties. Attached to this post is an image of the block diagram of this VI after I have modified it to set the font sizes of the title and legend to 15. The circles in the image represent what I had to add to accomplish this.
    Best Regards,
    Ayman Kabire
    Attachments:
    Excel_Insert_Chart.JPG ‏99 KB

  • Does not display axis label in graph when exported to excel

    I have a wierd issue.I have a report with graph with coloum chart and axis labels description on x axis.WHen i export the report to PDF everything looks OK.But when i export it to excel few axis labels disapper.Out of 12 labels only 2 apper when exported to excel.Has anyone encountered this issue.
    If so is there a way to fix this.
    PS: I am using BO XI 3.1 Webi.
    Thank you,
    Sanjeev

    hi,
    I have tried this out with a sample.
    In WEBI preview mode and PDF, all axis labels will appear fine.
    But when exported to excel, some labels will disappear.
    Workaround: We have to increase the chart size in Excel till all axis labels appear clearly.
    Regards,
    Vamsee

  • Can I align the orientatio​n of axis labels in a graph generated with the report generation toolkit (Word)?

    I was wondering how to align the axis labels, i.e. 90 degree or such when creating a graph with the report generation toolkit in word.
    I can do it after the document is created through Format axis title -> alignment but is there a way out of LabVIEW?
    I'd especially like to rotate the y-axis label by 90 degrees.
    Thanks a lot,
    Juergen

    I think he means he can modify it by hand after the report has been generated... But what I want to do is generate the word graph out of labview already with the rotated axis label...
    After I posted this I found out that we can do this with a macro and use it from labview, but unfortunately I don't know VB, or VBA...
    Like this:

  • Showing one data point on a line chart - X-axis label placed away from its actual position

    Hi Guys,
         In line chart, i used CircleItemRenderer to show single data point. It shows correctly if it is single data point. But the x-axis label placed away from its actual position. Right now it displayed left most position where the line chart starts. I need to move that label straight of that datapoint where it plotted.  Please see the screen shot attached with this post.
    In screen shot, x-axis label "Jan" displayed in left most position.
         And how can we show the datatip for single datapoint. At present, we can't able to see the datatips also with single datapoint.
         Can any body help me to fix those two issues.

    I figured out a way to customize a single datapoint in a line series.  The solution is at this link:
    http://www.flexdeveloper.eu/forums/flex-charting/customize-a-datapoint-in-a-line-series/

  • Stacked bar chart with custom x axis labels

    Is there a way to build this simple chart in labview that I did in Excel?  I need to have many x axis labels and there could be from 5 to 100 of them depending on the data set. 
    Attachments:
    Excel.JPG ‏33 KB

    Hi id,
    Thank you for your response. I hope you are doing well.
    There is an example in the LabVIEW Example Finder (Help>>Find Examples..). It is titled, Stacked Bar Graph. You can search for it if you switch tabs in the Example Finder window. This should help you create a stacked bar graph. To help you with your veritcal axis labels, here is a knowledge base link that details the process:
    How Can I Customize the X-Axis Labels On My LabVIEW Graph/Chart So They Appear Vertically?
    http://digital.ni.com/public.nsf/allkb/1F7C1B089E4​5908E86256C8C0051894A?OpenDocument
    Let me know if these examples help.
    Best regards,
    Anna L
    Applications Engineer
    National Instruments

  • Display Column Chart Y Axis Labels in Kilo(K), Million(M)...

    Hi Folks,
    I would like to display the Y-axis labels of a column chart in Kilo, Millions etc. I used the below mentioned formula in excel for that set of data. Here is the formula [>=1000000]0,,"M";[>=1000]0,"K";0
    Though in embedded excel it displays the values as desired, when I assign them to the column chart in Xcelsius the Y axis labels are not as expected. For Kilo it works fine but when it comes to millions it is not displaying accordingly. Any help is appreciated.
    Thanks,
    Sukumar

    Hi Sukumar,
           If You want to display the Y Axis Labels like Kilo(k),Million(M),Billions(B)...etc.Do the following things ,
            goto column chart properties->behaviour->scale in that Enable the Fixed Label size checkbox.
    Regards,
    Ramana

  • How to avoid repeatition of axis labels in Graphs in WebI 4.0??

    Hello All,
    I am working with graphs in WebI 4.0. In category axis, the labels are being repeated thrice ,twice and so on based on the filter which I have placed according to my requirement.. I need them to be displayed only once. I have used axis label delete factor from Format chart. But then it solved only partial problem. Appreciate your help.
    Regards,
    Anila.

    plz
    try this
    create a one more vertical table
    and check that location-text and location-key are some .
    we think it would be like this
    location-text     location-key
    can                          01
    cbg                          02
    det                           03
    txc                           04
    txc                           05
    bec of different key and some description the axis is getting repeating.

  • Y Axis label color inherits Pen color and not the default Label color.

    Hi,
    How do I enforce my Y Axis Label to taken the default color specified in the iChart Y-Axis Label Color property instead of picking it from the Pen color selected from the legend? I have a Y-Axis Label called "Total Stock", I can very well change the Label text using method
    document.TestChart.getChartObject().setYAxisLabel("Label from code");
    But when I use a similar
    document.TestChart.getChartObject().setYAxisLabelColor(Color);
    property, I dont see the color change on the screen. But when I get the color using a getYAxisLabelColor() method , the specified input Color is set. My Label in the Y-Axis, always inherits the Pen color of the selected Legend Item, by default the first Item color on Page Load.
    Settings done in the iChart:
    Use Selected Pen for label : Unchecked
    Y Axis Label Color: #000000
    Y Axis Label : Total Stock
    Show Y Axis Label: Checked.
    I appreciate your help,
    Ajitha

    Jeremy,
    I tried the method you mentioned...
    document.TestChart.getChartObject().setYAxisLabelColor(document.TestChart.createColor("#000000"));
    But I still dont see a change in the Label color.
    Another finding is, when I try to alert the Label color on load of the page or during the creation of the applet, I see the label color on the alert is not the pen1color but the default Label color that is set in the display template. I assume that the legend's default selection, overwrites the Label color with the first pen color, but I could not get it with the getYAxisLabelColor() method, even though I see it on the screen.
    Thanks!
    Ajitha

  • Duplicate y-axis labels on charts for small data values -- is this a bug?

    Hi,
    I have several charts where the data values are small (1,2,3). The y-axis labels are duplicated for these charts. For example, if the data value was 2 the y-axis labels display as 0 1 1 1 2 2 2. I know that I can manually set the maximum y-axis value and also set the segments on the chart to eliminate the duplicate values. My issue is that I have over 100 charts in my dashboard and I have to manually set the values each month, and then in the next month when the data values are larger I have to remove the maximum y-axis value so the y-axis value is dynamically created. Is this a known bug within the software? Is there any fix for this besides what I'm already doing?
    Please let me know if anyone else has seen this issue and if this is a bug, or if this has been corrected in any fix packs.
    Thanks!!

    Hi Jim,
    I have data for three months in the data range A1 to B3 as given below -
    Jan - 1
    Feb - 2
    Mar - 3
    In Cell D1 write a formula =MAX(B1:B3)+1 (This will give you value 4)
    Go to Chart property -> Behavior -> Scale -> Manual (Y) Axis ->  Minimum 0 and Maximum will be pointing to cell D1.
    Go to Chart property -> Behavior -> Scale -> Division -> Size of Division 1 and Minor Divisions 1
    This will give you Y Axis values as 0,1,2,3,4
    Now change value of any month to 5.  Now value in D1 would become 6 and Y-Axis would change to 0,2,4,6.
    Hope this helps.
    Rashmi
    Edited by: RashmiG on Jan 8, 2010 4:45 PM

  • How to display axis labels on both x and y-axis of a column chart

    hi,
     i have an urgent requirement of having axis labels on both x and y axis
    In x-axis i got it by sorting order also but in y-axis i'm unable to do
    i need in y-axis ,my column values are L1,L2,L3,----L10these shuold display in y-axis in sorting order and 0 in axis should remain as it is ..........how to take the interval ....? as of now i'm using Auto
    my y-axis values shud look like 0,L1,L2,L3,L4,----L10can anyone get perfect solution
    thanx in advance
    lucky

    Hi Lucky,
    Per my understanding that you want to display the values(Column1) like  "L1,L2,L3....L10" which comes from the "Series group" in the Y-Axis label and keep the row group in "Category group" to
    display in the x-axis and Numric column(1,2,3,4) in the "Value", right?
    Gernerally the lable display in the y-axis is automatically based on the value of the Numric column in the "Value" and it default is numbric labels.
    I have tested on my local environment and in your scenario, i suggest to hide the axis lable of the y-axis and create an tablix to only show the one column contains the values (L1,L2,L3,L3) to display in the place of the hidden y-axis label.
    Detais information about to design an new y-axis label ae below for your reference:
    Create an tablix to display only the row group of the "Column1" ( for the
    Column1 may have duplicate values, you can create parent row group for this column and hide the detail column by setting the "Column Visibility").
    Right click the y-axis to select the "Vertical Axis Properties" and select the "Labels" on the left pane to check the "Hide Axis labels"
    Select the Chart Area and in the properties set value of left=0 under the CustomPosition:
    Set the border style=None for both the Chart and Column1's row group
    Drag the tablix at the position near the hidden y-axis and set the size of both the chart and the tablix to make the value in the tablix row group(Column1) to be align with the y-axis label:
    Right click the "Chart legend" to delete or hide the legend
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How do I rotate chart axis labels?

    Trying to rotaet chart axis labels for the x-axis, but would like to know the same for the y-axis too. Know the solution for a text box, but doesn't seem to work for the axis labels.

    Hi Martin,
    The solution is the same for X and Y labels. Select the labels and then set the rotation angle, either in the Format Bar or in the Metrics Inspector.
    Jerry

  • Flex Mobile Charts -- Less Than Symbol in Axis labels

    Hi,
       I am creating a Mobile Project and want to display a column chart. My problem is I want to display "<" in  Axis label of charts.But somehow its not working.I have tried using "&lt;" and is working fine in Web and Desktop project.But somehow it is not working in Flex mobile project. I have attached the source code for the same please help me to resolve this issue.
    Thanks & Regards
        Vishal Lad

    No attachment option found so pasting my mobile project code.I am doing same thing in Web and destop project this is working fine.But for mobile project somehow I am getting blank label.
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView" xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    [Bindable]
    public var expenses:ArrayCollection = new ArrayCollection([
    {Month:"&lt;200", Profit:2000, Expenses:1500},
    {Month:"200-400", Profit:1000, Expenses:200},
    {Month:">400", Profit:1500, Expenses:500}
    ]]>
    </fx:Script>
    <mx:ColumnChart id="myChart" dataProvider="{expenses}" showDataTips="true">
    <mx:horizontalAxis>
    <mx:CategoryAxis
    dataProvider="{expenses}"
    categoryField="Month"
    />
    </mx:horizontalAxis>
    <mx:series>
    <mx:ColumnSeries
    xField="Month"
    yField="Profit"
    displayName="Profit"
    />
    <mx:ColumnSeries
    xField="Month"
    yField="Expenses"
    displayName="Expenses"
    />
    </mx:series>
    </mx:ColumnChart>
    </s:View>

  • How to display an image and add axis labels

    Hey everyone,
    I just had a really quick question on a program I created. It uses the vision module to open a file in a new display window, and I would like to add axis to the image simlilar to the picture below (With both the x and y axis labels as pixel, and a cursor which displays the pixel value or intensity). I have attached the simple program, as well as an example of the type of image I would like to open. Thank you for the help! =]
    Attachments:
    TEST1.zip ‏2223 KB

    I've updated the open_img.vi file so that it works with the generic sample picture provided, but the program does not work with the image within the ZIP file from the previous post.
    Or if anyone has any other ideas how to add axis labels to an image, I am by all means open to suggestion. Thanks
    Attachments:
    open_img.vi ‏47 KB
    Water lilies.jpg ‏82 KB

Maybe you are looking for

  • How to show whole year in iCal

    iCal is configured to shoe day, week and month but can one get iCal to show a whole year, like a wall calendar. If not then perhaps there is some add on software that will do this? Grateful if anyone can advise thanks

  • Logic Pro 7 will no longer load

    have been using logic pro 7 with no problems but now suddenly it won't load i just get the spinning wheel of doom and have to force quit. tried it about 10 times rebooting etc and re-installed logic twice. it has worked once since and i thought this

  • Application Server Download, Upgrdation 4.6b to ECC 6.0

    Hi Experts, We are undergoing upgrade from 4.6b to ECC6.0, OPEN DATASET APPL_FILE FOR OUTPUT IN TEXT MODE. This statement is written in 4.6b version, the ouput is perfect. In ECC 6.0 the statement is OPEN DATASET APPL_FILE FOR OUTPUT IN TEXT MODE ENC

  • Printing from a Mac to my XP machine

    I currently have a printer attached to my XP SP2 machine, shared and want to be able to print to it wireless from my Macbook. When I try to add the printer on my Macbook, it seems to work and when I try to print to the Brother DCP120C it starts spool

  • Sync without iTunes?

    I just thoroughly dislike iTunes. I quit using my iPhone because I don't want it on my PC's. I thorougly hated the fact I can't drag and drop files of my choosing to the phone and do away with the need of a USB flash drive. Cant I use Active Sync? Pl