Resize xy graph axis text
Hello, I have a question regarding XY graphs:
I want to have two XY-graphs with identical sizes aligned perfectly to have a nice comparison of separate data sets without plotting them on the same graph. However, I can't find out how to set the width of the y axis text. Because now when the width of the texts are not the same, even if the whole graph has the same area and starting point (the solid line on my pcture), the plot areas are a bit off (indicated by the arrows)
Can I somehow set the width of these texts, so the plot areas match up? Right now I am using "Position" and "Plot area size" properties of the XY graphs to make them equally sized.
Thanks
Engage! using LV2012
Solved!
Go to Solution.
thank you, I tried it with %10.0f, however it seems that when there is a huge discrepancy in the order of the two graphs (e.g. one from 0-10k, another being -9 to 0), it seems to be still behaving strange
I attach my vi (without the format strings)
Engage! using LV2012
Attachments:
xygraph_resize.vi 22 KB
Similar Messages
-
Hi
The 3d graph control is everything I could want for my application with one exception!
When you rotate a graph, the text for the axes becomes reversed. I have seen other controls that handle this but the NI version does not seem to have an option to maintain text direction.
If anyone knows any tricks, or even the right method to achieve this then please let me know.
PaulHi Paul,
I'm afraid that with the present 3D Graph control, what you ask for is not possible. However, I thank you for your suggestion, and we shall consider adding this as an option in our future versions of the 3D Graph.
Regards,
-Ashwin
NI -
Xy graph axis number font sizes.
sorry see my earlier xy graph axis font post for the details but what I really want to do is change the size of the font.
thanks.Property node properties-> X (or Y) Scale -> Marker -> Font -> FontSize
-
Can't resize column to fit text
Can't resize column to fit text in numbers. option is "grayed-out" no matter what I do
It is either a glitch or a rather unfun new thing. No one knows for sure. You do have a bit more control if you go into your photos app, find your photo and tap on the little box with the arrow poking out of it. That allows you to send it to be wallpaper. You can do some scaling, although not as much as you used to.
Finding work arounds is about all you can do until it's fixed. -
How do I resize a graph?
Hello,
how do I resize a graph? From what I can see, I can only set its size when I create it?
I guess I could Transform > Scale an existing graph - but I'd rather set a fixed width and height so I can keep the proportions right for when I import the graph into InDesign.
Thanks!The final size of your graph depends amongst other things on the size of the type and the number of digits in the XY values. So rescaling with either the Scale ot Transform tools is almost always necessary. I suggest snapping ruler guides to a rectangle which is in the correct size may be a good idea. Then you can always snap your graph to fit to the guides. Be aware that simple scaling will result in the type becoming distorted. You can select the type by double (or treble)-clicking on one of the digits with the Direct Selection (white arrow) tool. That way you select the whole group to adjust the size of the type.
-
Y-Axis Axis Text on Multiple Lines
Hello,
Is it possible to get the y-axis text in a Report for a 2D axis system to go onto two different lines instead of one? In other words, I would like to add a carriage return/line feed (CRLF) in the y-axis text between the channel name and the units. Is it possible to do this with the x-axis text?
I am using DIAdem 10.1. Let me know what else you need to know, and thanks for any and all assistance.
Thanks.Hello InternationAL!
Just add a @@vbCRLF@@ expression for every new line.
Example: @@ChnName(CurrChnNo)@@ [@@ChnDim(CurrChnNo)@@]@@vbCRLF@@My second line
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater? -
Error scheduling Graph containing text Enrichment component
I have been trying to schedule Graph containing text Enrichment component without any joy (Integrator 2.2.2). The graph executes but returns an error when trying to run TE component.
Has anyone managed to get this configuration scheduled?What error are you getting (in the graph log or app server log)? Does the graph throw the same error if you execute it directly from the Sandboxes section (not scheduled)? Also to note, there is not a supported TE product component in version 2.2.2. The first release of a supported TE product component is in 2.3.0 and it appears to run fine as scheduled in the LDI Server.
-
How do I resize the 3D Axis?
Hi,
the helpfile says under "Minimize, restore, move, or resize the 3D Axis"
"To resize, drag the zoom icon."
How do I do that and where is that icon? The rest is no problem.Hi,
Here's where you click to toggle the size (only 2 sizes). You're correct that the Help document needs revision for CS5. CS4 used a different UI, which Mylineum referred to, that involves click dragging to change along a range of sizes.
regards,
steve -
[graph] deleted plots are drawn till resize of graph
I work on CVI2012SP1 and I´m having some trouble with the graph control.
As the stripchart control does make to much trouble for me I went with the graph control to display a moving chart. This works much more painless than with the stripchart, but now I got another problem with drawing the plots.
I´m deleting all plots and then adding new ones. Then I call RefreshGraph() and the new plot is drawn, but also is the old plot (see the screenshot)!? If I resize the graph only the current plot is drawn.
Why is this so? Is this a bug? How can I work around it?
Solved!
Go to Solution.
Attachments:
Fehler Graph Zeichnen.jpg 467 KBI don´t know if I understood you right.
This is a stripped down example of the code I use:
// Graph nicht zeichnen
SetCtrlAttribute(panel->panelHandle,g_scGraphControlIds[CTRL_GRAPH_CHART],ATTR_REFRESH_GRAPH,0);
// alte Plots entfernen
DeleteGraphPlot(panel->panelHandle,g_scGraphControlIds[CTRL_GRAPH_CHART],-1,VAL_IMMEDIATE_DRAW);
// aktive Y- Achse setzen
SetCtrlAttribute(panel->panelHandle,g_scGraphControlIds[CTRL_GRAPH_CHART],ATTR_ACTIVE_YAXIS,VAL_RIGHT_YAXIS);
// Plots eintragen
for(int sensor = 0; sensor < 8; sensor++)
int colorTrace;
int colorMinMax;
// Farben festlegen
if(panel->showTrace[sensor])
colorTrace = g_GraphTraceColors[sensor];
if(panel->showMinMax[sensor])
colorMinMax = g_GraphTraceColors[sensor];
else
colorMinMax = VAL_TRANSPARENT;
else
colorTrace = VAL_TRANSPARENT;
colorMinMax = VAL_TRANSPARENT;
// Value Plot zeichnen
panel->plotHandle[sensor * 3] = PlotXY(panel->panelHandle,g_scGraphControlIds[CTRL_GRAPH_CHART],g_sGraphXBuffer,valueBuffer[sensor],numPointsChart,VAL_INTEGER,VAL_DOUBLE,g_GraphLineThickness,VAL_NO_POINT,VAL_SOLID,1,colorTrace);
// Min Plot zeichnen
panel->plotHandle[sensor * 3 + 1] = PlotXY(panel->panelHandle,g_scGraphControlIds[CTRL_GRAPH_CHART],g_sGraphXBuffer,minBuffer[sensor],numPointsChart,VAL_INTEGER,VAL_DOUBLE,g_GraphLineThickness,VAL_NO_POINT,VAL_SOLID,1,colorMinMax);
// Max Plot zeichnen
panel->plotHandle[sensor * 3 + 2] = PlotXY(panel->panelHandle,g_scGraphControlIds[CTRL_GRAPH_CHART],g_sGraphXBuffer,maxBuffer[sensor],numPointsChart,VAL_INTEGER,VAL_DOUBLE,g_GraphLineThickness,VAL_NO_POINT,VAL_SOLID,1,colorMinMax);
// Graph zeichnen
SetCtrlAttribute(panel->panelHandle,g_scGraphControlIds[CTRL_GRAPH_CHART],ATTR_REFRESH_GRAPH,1);
RefreshGraph(panel->panelHandle,g_scGraphControlIds[CTRL_GRAPH_CHART]);
As said, if I replace the "VAL_IMMEDIATE_DRAW" with "VAL_DELAYED_DRAW" the old plots are drawn until I resize teh graph.
As I see it, I´m not reusing the plot handles, but getting new ones for every change (of the data) I make. -
OBIEE 11g - sorting graph axis based on metric
Hi, I'm trying to create a graph that show employee counts by various colleges on campus. I want the graph to look something like this (sorry for a text version, don't know how to upload a screenshot..this is supposed to represent a horizontal bar graph...):
College Employee Count
College 1 =================
College 2 ============
College 3 =======
College 4 ====
i.e. I'm trying to list the college dimension going on the vertical axis, but I need the values sorted in order of highest employee count to lowest, not alphabetically.
I haven't figured out how to do this with a normal graph, but I have been able to do this using a pivot table and then displaying the associated view. However, I'm still having a major issue with this. If there are a lot of colleges selected (we have about 40 total), then the graph doesn't show a axis label for every bar. Instead, it looks like only every 4th bar is being labeled, the rest have bars but no labels. This really isn't (at all) what I need. I need each and every bar to be labeled.
One solution I guess would be to (greatly) increase the vertical size - maybe change from Canvas Height = 330 to Canvas Height = 1024 or something. Unfortunately, that would make the graph take up the entire dashboard. And if a user had filter criteria set to only have 4 colleges selected, the graph would look horrible. What I really need is a simple scroll bar that lets the user scroll up and down in a fixed window. Is there any way to do that - or any similar functionality I could use? I see something called "Enable Zoom and Scroll" but haven't quite figured out how that works.
Thanks in advance!
ScottActually, I've figured out that "zoom and scroll" is exactly what I want...sort of...
To make the graph show up properly, I can zoom twice on the vertical axis and everything works great. Only problem I'm having is that if I save the graph, exit and go back in, the "zoom" setting isn't saved. Anyone know a way to get the zoom setting to "stick"?
Also, is there a way to make the zoom icon (the little hourglass) always show up, instead of just when you happen to hover over it? An end user might not know it's there if it's not visible.
Thanks,
Scott -
Is there an option to format X-axis "Text" or "Date" ???
Is there someplace in Oracle Reports where I can instruct the graphing application whether to regard the X-axis data as "Date" or "Text"?
What application are you referring to? TextEdit? If so, the keyboard shortcut is Shift-Command-T, as it shows next to the menu command (at least it is assuming you have Snow Leopard, the subject of this forum, not Mac OS X 10.5 as your profile indicates). If you're referring to some other application, you'll need to tell us what application that might be.
Regards. -
Two universe objects on the same graph axis
I am trying to create a bar-stacked graph in the Web Intelligence document. I add \[Period\] universe object to X axis, \[Total\] object to Y axis. Then I want to add two objects to Z axis:
\[Sector\] (has values: Europe, Asia, America) and \[Status\] (has values: Active, Validating)
The problem that it makes a cartezian product between all value, so the output is:
Europe/Active
Europe/Validating
Asia/Active
Asia/Validating
America/Active
America/Validating
But, what I want is:
Europe
Asia
America
Active
Validaing
Is there any way to do this? Maybe with the help of some universe parameters, or REBean SDK...this is cross topic
-
Problem with the number format in the graph axis with Report Generation Toolkit.
Hi!
I'm trying to use the Report Generation Toolkit to plot some graphs in Excel.
My first problem is that I don't know how to configure the number format in the Excel Set Graph Font.vi so that my numbers are correctly displayed in the graph's axis. The only given option is general (0,0) but this is not enough for me, my numbers can get really small so I need engineering notation or fraccional format.
Second: I also insert a table with the graph source data, but the numbers are not correctly displayed either: for example:
0,75 is shown as:
0,750000
but 1,25 is shown as:
1!250!000
My guess is I am making to much or wrong string to number conversions or Excel is getting it wrong but I can't find my way...
Can someone help me with this?
Thanks,
IsabelHere is my VI, it's just a trial so it can look messy...
Thanks,
Isabel
Message Edited by Isa_pm on 01-22-2007 01:12 PM
Attachments:
Create report.vi 96 KB -
XY Graph Axis's autoscale but no plot shows?
I just don't undestand XY Graphs.
I have folowed the examples, tried the xy graph express vi, even gone as far as copying and pasting the example vi right into my own program.
The axis's autoscale but the plot never shows on the graph?You only generate one point for each iteration of the large FOR loop and, unlike charts, XY graphs don't keep a history. You might get what you want by double-clicking the "Built xy graph" express VI and unselect "clear data on each call". I don't really use that feature.
How fast does the loop run? Maybe it's OK to build the x and y array at the loop boundary and only plot at the end of the loop (green insert of image)? FOr continuous update while the loop is running, you could also build the x and y arrays in a shift register (upper part of image).
Notice that you don't need to do the complicated detour via a 2D array. Simply keep it as 1D array and insert an "array to cluster" for the chart (see image). Don't forget to set the cluster size to 3 by right-clicking on "array to cluster".
Message Edited by altenbach on 02-12-2007 03:56 PM
Message Edited by altenbach on 02-12-2007 03:59 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
XYUpdate.png 33 KB -
Reading from graph to text file in labview 7.0
Hi Guys!
I am doing a project which reads analog values from a microprocessor board and I am using the Labview example Cont Acq&Graph Voltage-Int Clk.vi. I am getting an analogue graph using this VI. is there any way I can convert the values on the graph and save them to a text file?
Any help would be much appreciated!
Thanks
PaulineHi Pauline
There are two ways. Either you place the Export vi in the vi you're already using or you assign the waveform indicator to a terminal (search the LV help for terminal). This makes the waveform-data available for other vi's if you use the Cont...vi as a sub-vi. This means you can create a new vi, place the cont acq&graph valtage-int clk.vi and the export waveform to spreadsheet file.vi in it and wire these together (similar to all the vi's in con acq&graph...vi).
Thomas
Using LV8.0
Don't be afraid to rate a good answer...
Maybe you are looking for
-
Flex spark dataGrid gridColumn itemrenderer binding bug
I hava a TextInput within mx DataGrid gridColumn itemrenderer and binding its text to {data.f1} , when I set DataGrid dataProvider column (0,0) to "value1" by actionsript code, it will update "value1" to TextInput field. But if I change to spark Data
-
Hi I have a anew iphone 5. When I connect to iTunes via a cable, the iphone immediately shows up. i have checked that in itunes "Sync over wifi" is checked. On the iphone iTunes wifi Syn shows my mac book pro. If I diconnect the cable from the
-
If my server is at 9.0.1 with no hot fixes and I want to get to 9.0.1 up to date with the latest hotfixes up to apsb13-27. Do I install the cumulative hotfix 4 for coldfusion-901 as described in http://helpx.adobe.com/coldfusion/kb/cumulative-hotfix-
-
All of a sudden I am unable to receive e-mail through comcast on my PC. I am able to send e-mail. I can receive comcast e-mail on my phone and tablet. One help topic suggested I delete the password for my comcast mail and that I would be prompted to
-
Any tutorial for Live RTMP Dynamic Streaming using Strobe Media Playback?
Any tutorial for Live RTMP Dynamic Streaming using Strobe Media Playback anywhere available on the web ?