Superimposing Graphs
HI, I need to superimpose graphs using one of the free java graph libraries such as JGraph or something. Does anyone know if superimposing graphs with these free libraries is possible? Thanks.
It doesn't matter whether it is "data points" (I assume you mean from an experiment of some sort) or "equations". To plot an equation, you plug in 'x' values to compute 'y' values. Then you plot those 'x, y' points, which would be equivalent to your experimental data points.
If nothing else, putting two or more sets of 'x, y' points onto the same chart should be doable if you just plot all the points as though they were one set of points. I imagine if you plot them in order set1, set2, set3, ..., you could draw lines between the points for each set, or make points from each set be a different color, or whatever you need.
I think you need to do the research, as nicklap suggested. Check the API for whatever graphing library you want to use.
Similar Messages
-
How do you add two separate treadlines to a graph
I created a scatter plot for my data. I have two different sets of data that I want to plot on the same graph. It has to do with the gain of water weight depending on the concentration of either sucrose or salt. I graphed both sets of data on the same graph but i need two different treadlines to see the differences in slope. Is there a way to get two different treadlines on this graph with the data i select or is there a way to superimpose graphs on each other so they are one?
Emily,
You have to have the proper Table layout for this to work.
Numbers requires that the two different series be in different pairs of columns.
For instance, Series 1 could be: x-values in column A and y-values in column B, and Series 2 could be: x-values in column C and y-values in column D.
Otherwise, Numbers doesn't know how to keep the two series separate.
You build such a Chart by starting with only Series 1, then select Series 2 and drag it to the chart.
Jerry
Message was edited by: Jerrold Green1 -
OK quick question....
In LV 6.1, is there any way to influence the Z-order of the
plots? I want to have a basic plot (it's a multiple-peak
spectrum) in the background with the area between the plot and zero
filled. I then want to be able to superimpose the individual
peaks on this basic plot. At the moment, if I place the basic
plot at index 0, it overwrites all others, and the individual peaks
become hidden (this is bad). I've adapted to this and simply
reversed my order of plots (this is good).
The problem comes whan I have varying amounts of plots on my
graphic. Setting and re-allocating the visual plot properties
each time I select or deselect a plot is really slowing down my
code. What I really need to be able to do is simply set the
Z-order of the plots so that I can effectively send the basic plot to
the background, irrespective of it's order in the plot list. I
also don't want to limit the number of plots as I don't like that
approach out of principle. I like my code being able to take
whatever is thrown at it.
Here are a couple of pics illustrating my problem....
Thanks in advance
Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
Attachments:
This is good.png 7 KB
This is bad.png 6 KBChristian and Lynn,
Thanks for the replies. I think I'll have to go the route
suggested by Christian since I kind of thought that changing the
Z-order of the graph rendering wouldn't be possible.
Lynn, This is exactly what I'm doing at the moment. I'm
basically reversing the array so that the last three plots are always
the same, and then setting the plot properties accordingly. This
is working, but it's a real pain and it's also awkward to
maintain. Speed isn't critical, but it takes around 500 msec to
allocate 17 plots. This is already noticeable in an otherwise
zippy UI.
What I'll most likely do is the following:
When the spectrum is loaded, allocate plots for ALL data sets (This
part I won't limit in the number of plots, thus allowing for huge
amounts of data - no artificial limit). I still have to do some
plot processing and setting display properties of the graph, but this
will be done on loading the data, so it's not TOO bad.
Then afterwards, as the individual plots are selected and deselected,
I'll simply hide the respective plots. This makes at least the
handling of appearing and disappearing plots much easier. This
means that all plots will be permanently visible on the Legend, but
that's not such a problem really. Only cosmetically. I need
to think about whether the legend is even neccessary. I can't
limit the number of entries visible on the legend, because the most
important are at the end. I have thought of creating a dummy XY
graph off-screen and using the legend from that instead of the legend
from the actual XY graph, but that's not really making things simpler.
EIther way, thanks for the help guys,
Does anyone know how things look in later versions of LV? How
about the all-new super duper turbo-charged LabVIEW 8.0? (this post
will seem so silly in 5 years time when LabVIEW X is around). Any
option to control the Z-order ot the graph rendering?
Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2) -
Combine a Bar Graph with a Line Graph!
Is it possible to combine a Bar Graph with a Line Graph because occasionally we wish to use both bars and lines on the same plot.
If yes, could you please give us a sample rtf file?
Thanks,
-RituHi Tim,
To be more clear, I need to superimpose the two graphs.
For example,the first one shows the budget for each month along with the actual expenditures as a bar graph. The other shows the cumulative budget, forecast and costs for the entire project as a series of lines. The first graph uses the scale on the left side of the graph and the second graph uses the scale on the right side.
Thanks,
-Ritu -
Graph not initialized: is it possible?
Is it possible to have a graph without initialization? I mean I would like that it could keep the plots from the previous run of the vi, so that at the following run the new plots could be superimposed on top of the old ones without the old being cleared.
You are not very specific here, but you are probably looking for a chart. This assumes that the data is spaced equally in time.
Another possibility would be the xy graph frmo the express palette. You can configure it to retain data between calls.
In the most general case you can build up your data in a shift register.
LabVIEW Champion . Do more with less code and in less time . -
I am trying to superimpose a graph that I have created in excel onto one that I have taken from an internet PDF and put into a pages document. Can anyone help me?!
Make sure the Fills are set to none in your Excel doc. Copy, Paste, Superimpose.
Jerry -
Can we make the background of the graph transparent?
The requirement is to superimpose two graphs on each other the way we do it in Xcelsius.
Any help appreciated
Env : BO XI 3.1 or BO XI R 2 both RTM with no Servcie Packs
Thanks
-PHi Rohit,
Thanks for your reply.
Requirement is to implement Alerter like functionality in to webi; however in XI r2 alerter does not work on Graphs.
So I was trying the workaround to create two graphs and keep them one above other fixing the relative position in webi.
Details as below :
1. The x axis on graph will display the dates
2. Y axis will displays any Measure object say Revenue
3. Z axis any dimension say Categories
The bars will have the colors as per the requirement; only when the dates are between some specific ranges, say 20Dec to 31 Jan then bars should appear grey.
This is something like Alerter on graph.
Hence I want the background of the graph to be transparent.
Any ideas how I can achieve this or may be alerter like functionality without upgrading to any newer version implement this?
Thanks
-P -
Obscured Labels - Graphs and tab controls
In LV 2012 new options (Preferences or Options on the Mac) allow placing labels on new controls and indicators in various positions. I have noticed that for graphs and tab controls some of the options result in obscured labels. See the image below.
The preferences are set as shown:
When a graph is dropped, the label is superimposed on the plot legend display.
For a tab control everything is OK until enough tabs are added to create a second row. Those tabs are behind the label. I can understand some reluctance to move a label automatically after it has been created (in the tab case), but I think it would be better moved up than obscured. Perhaps if the programmmer had repositioned the label before the tabs were added, then it should not move automatically.
Is this a bug?
LynnHi Lynn,
I've played around with these settings and I get the same results. It seems with the tab control that the new row of labels is pushed to the top by default, and the label will be obscured unless it has been placed to the bottom or side of the control. After looking into things further it seems that this is the expected behavior rather than a bug. You're welcome to post your idea to the Idea Exchange as a feature request, it seems like that might be a better way to handle the label positioning in the future.
Matt Lee
National Instruments
Applications Engineer -
Superimpose One Page On Top Of Another
I am trying to create a chart that is about the size of a business card and put my information on the back of the business card. I have gotten as far as fitting six of my charts (business card size) on one sheet in Pages 09 and my information six times also (business card size) on another sheet in Pages 09. I want to superimpose one sheet on top of another so that my chart and info will LINEUP WITH EACH OTHER so I can print on both sides of a sheet of paper and then laminate the sheet of paper and then cut each individual card out. If you understand my problem please respond.
Thank you
MikeView > Show Rulers.
With one of your graphis objects selected, Drag Guides onto your document from the Rulers to where you need them. They won't print, but if they distract you, you can delete them once they've served their purpose of helping you to line things up.
Jerry -
hello everybody,
I want to make a bill preparing program by labview.I made a macro excel file(including headings,formulae etc).I want to take inputs from another file and put into this file and take printout.As labview cannot handle excel file I made a .txt file by labview with all input data with proper formatting that should match with the excel file. Actually the excel file has some blanks and input data can fillup these blanks.I could make the .txt file such that this .txt file and excel file match together and make the bill complete.How do I made this superimposing by labview and make the bill complete?
please help me and give some suggestions.
thank you in advance.....
-Sudipta Sengupta.You can save the already created excel sheet as a template and then fill in values using the MS Office Report express VI in LabVIEW.
You can define a named range in Excel template to insert text, numbers, tables, or pictures into a template. Excel template filenames include the .xlt or .xltx extension. To define a named range in an Excel template, open the report template you want to use, point to the cell or a range of cell, right-click and select Name a range. Enter a descriptive name. This name will appear in the express VI configuration window when you use it in LabVIEW. Add names for all the cells where you want to insert data. For each named range, you can specify whether you want the Express VI to format data as text or, if the data is an array, as a table or graph. You also can use the Report Generation VIs to insert text, tables, and graphs into named range locations. Specify the named range where the VI inserts data in the MS Office parameters input.
In LabVIEW, put MS Office Report Express VI on the block diagram (Functions Pallete -> Programming -> Report Generation). Select Custom Report for Excel in template field and specify path to your template. This should populate the "Named Range in Selected Template" Field with all the cells or ranges that you named in the template. In the report destination select "Save to File". Click configure "Save to File" options and make appropriate settings there.
Press OK when done. On the block diagram you should see all the named ranges as inputs to the express VI. This is where you give approprialte data from LabVIEW to your report, and this gets saved to the file name you specify.
I am attaching the template and the generated report that I used. Hope this helps.
Chinmay Anand Misra
CLD
Technical Marketing Engineer
NI IndRA
Attachments:
gen.xlsx 9 KB
Template.xltx 9 KB -
Usb -1208fs 8 channels continuous graph
Hi everyone! I'm working with an usb-1208fs (sinlge-ended mode, 8 channels, 2kS/s) and I want to visualize all 8 analog inputs in continuous mode. For that purpose I have changed the Xaincnbg.vi example from Universal Library to my case. It does work but not really good, because if I switch on one signal to the channel 1 I can see the signal in both windows Waveform Graph 1 and Waveform Graph 3 and vice versa. If I switch on two signals then I get visalized these signals superimposed each other.
What is wrong in my code?
I have been sitting on this problem for two days and I have no idea what is wrong.
I hope someone can help me.
Message Edited by uwlu on 08-27-2009 02:41 AM
Attachments:
usb1208fs_8_channels_cont.vi 240 KBHi uwlu,
I've taken a look at your code, but I cannot do much with it. You've only provided the main VI, but not the driver VI's. It would be usefull to share your complete project with us, so we can get a better understanding of all VI's you're using (which probably are driver VI's to your DAQ board).
Could you be a bit more specific on the problem you have and what the final result is you're expecting to see?
Regards,
Peter S -
Changing color table for intensity graphs
Hi, I've been working on superimposing intensity graphs and I'm almost getting it, I'm just having trouble with color table, it is suppose to be composed of a 1-D array of 256 colors
I have 2 intensity graphs each with a different color table (256 color - 256 locations in the color table array). I need to "squeeze" both color table into a third color table for the superimposing of the 2 intensity graphs. therefore I figure I would take every other color value from each of the first 2 color tables (so each color table shrinks to 128 color) and add the values to form a 3rd color table so that the bottom will correspond to the first color table and the top will correspond to the 2nd color table.
I can do this manually, but it takes WAY too long, so I've been trying to use some kinda of algorism, but I cannot succeed. Anyone have any suggestions? it seems that color table is an unusual kinda of array
My attempted program is attached.
thanks very much!!
Attachments:
superimposing3.vi 111 KBBrian,
I think this is what you're after (attached). The easiest thing to do is to decimate, then concatenate your original color tables to form your new "squeezed" color table. However, keep in mind that you also have to squeeze, or remap, your underlying data values to correspond with either one half of the color table or the other.
See if what I did makes sense.
Regards,
John
Attachments:
superimposing3_MOD.vi 90 KB -
Sometime the cursor name are superimposed on its cursor, does it exist a solution ?
when i save a XYgraph panel to a jpg picture , sometime ,some cursor name are superimposed on their cursor,maybe a refresh display problem, if you have any idea to resolve that bug ,don't hesitate thanks
Are you showing the cursor name (right click on the cursor legend and select show name)? How are you getting the XY Graph image? I ran a VI that uses the XY Graph invoke node and then the Write JPEG File VI to save the control as a JPG image. The cursor names are superimposed on the cursor only if I had selected to show the cursor names. Let us know a little more about what you are doing.
-
Graph is not getting displayed in R12
Hello folks,
Cureently m working on R12 upgrade project.
And we have a report which is working fine 12 but the graphs are not getting displayed as like 11i.
Could you plz any one help how to fix the issue.
Note: There is no error is coming up. But in the graph part , graph is not getting displayed.
Regards,
KrishnaHello folks,
Cureently m working on R12 upgrade project.
And we have a report which is working fine 12 but the graphs are not getting displayed as like 11i.
Could you plz any one help how to fix the issue.
Note: There is no error is coming up. But in the graph part , graph is not getting displayed.
Regards,
Krishna -
How can I display data gathered in a subVI in a graph of the main VI?
I have written a largish application (~50 VI's) which acquires, analyzes, display and saves data from an instrument with a built-in DAQPad. My problem is that my block diagram is rather messy by now. I'm using an event structure in my main VI which reacts to buttons being pressed on the front panel. During data acquisition (one frame of the event structure), I need to do a lot of data processing, and I'm displaying both raw data and analyzed data on the front panel. I'm using a lot of subVI's for this, but I always need to get data out of the subVI's again to display it on the front panel, cluttering my block diagram. It would be much nicer if the subVI could update the main VI's graphs and indicators. I just found two examples with control references which show how a subVI can modify e.g. a 3Dgraph of the main VI, but I'm unable to use this with normal graphs and charts - I can't find a way to update the actual data in the plots (I can scale the plot or color it blue etc - but I really want to change the data it's displaying, not color it blue). Is there anything I'm missing? Is there example code for this kind of problem?
best regards
Martinim assuming that you want to update your graphs and indicators as you are performing your DAQ, otherwise, you can pass out your value/s when the DAQ completes.
I have attached a very simple example of using a reference to update your front panel graph.
Hope this helps.
Attachments:
Reference Example(LV7.1).zip 17 KB
Maybe you are looking for
-
How do redeem my gift card code after I reset my ITune password? It shows no gift card listed and I no longer have that gift card but still have a balance on it.
-
How can I move (copy) my Time Capsule date to a new 2T hard drive and then wipe the TC and start as a new (clean) Time MACHINE backup?
-
Is it possible to lock out the Key Board commands in Keynote?
Is it possible to lock out your key board actions in Keynote? This happened all of a sudden. My keyboard has no effect on my trying to change text colors or enter characters. By using the mouse to add text the text box appears but I cannot change th
-
Cannnot add tools to bookmark tools in v24
upgrade to v24 but found bookmark tool icon is missing, tried add again. after restart it is missing again. have to downgrade to 21 now. why?
-
Sound isn\'t working on hp pavillion
I have a HP pavillion dv7-6135dx entertainment pc. Recently I was burning a CD from itunes when the computer crashed. I restarted it, and since then the sound doesn't work. I have run the diagnostic tests, whcih show the sound is working but nothi