Scientific-data graphs with lots of points

Two or more years ago I made a fairly nice data plot on a BufferedImage
and then rendered that for the printer and the screen.
Is that still the best way to plot data?

scphan wrote:
Take a look at JFreeCharts: [http://www.jfree.org/jfreechart/index.html]
++++
>
I haven't used it myself but it looks interesting, there's also a web start link on the page I gave you so you can get a quick preview.I have used it a lot and in my view it is the best free Java charting package going and is better than most commercial packages.
>
I'm still doing what you did with BufferedImages ;)Masochist.
(just cause I like to play with myself) Pervert.
but using JFreeCharts might be quicker.Much much much quicker.
There is one downside to JFreeChart - even though the library is free and comes with the source, the documentation is not free (15 I think) and without it you will struggle.
One needs to think about what one is doing if, as the OP implies, one is going to plot lots and lots of points on one chart. Since one can't resolve better than 1 pixel, it does not normally make sense to have a points density greater than 1 per pixel and it normally best with less than 1 pointer per 2 pixels. This means that if one has hundreds of thousands of points to plot on one chart one has to condense them down to a few hundred. As an example, if one has 100,000 points to plot on an XY chart then an approach is to break the X axis into about 300 segments and calculate the mean, the min and the max for each segment. One can then plot on one XY chart the mean, the min and the max as three lines.

Similar Messages

  • How to obtain a perfect line with this kind of scientific data graphs?

    In a lab the students get this kind of graphs to later be processed in an axial system:  a grayed pencil draw, very delicate, with all the imperfections in weight, intensity, etc.
    We need to obtain an uniform line (a solid one, without gray variations, same weight, etc)
    Autotrace seems the best tools although the results appear a little irregular.
    What could be the best approach as we have hundreds to process?
    Beginning with the scanning (more resolution?) and procesing firstly in Photoshop?
    Thank you.

    Your pink line looks exaclty like the first image you posted. Did you possibly swap the cyan and magenta colors in the legend (cyan looks less bumpy so so guessign that is actually you bezier path)?
    If the legend is swapped, then you should see the path is off immediately after using make work path in photoshop. If the dpi of your scan is high enough (eg: a of minimum1000 pixels in each direction, and tolerance setting is low enough, you should get better resutls.

  • Updating xy graph with the last point different

    I want to display a simulation of the path of a rolling ball as updating xy graph.
    The actual last point of the plot should be different from the older points, I imagine e.g.a thick circle.
    The coordinates of the points I hold in two arrays, so I need a xy graph,
    when I used xy chart buffer to get un updating graph all points of the
    plot are displayed in the same way, stars, circles and so on.
    I

    Ok, so the solution is coming from what you've just said. One plot for the old positions I assume you want to display a certain number of points... e.g. the last 10positions and one plot for the current ball position.
    Tell me if this is ok...
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    ball.vi ‏50 KB

  • Front panel graph with selectable points

    I don't if this can be done, but I was wondering if I can have a graph in the front panel that would graph only the points I select. This is the situation: I'm taking measurements in the program and I want to make a graph with them. The thing is that a don't want a graph with lots of points, I just want to select a point and graph it. When I want to, I select to take a point and graph it, then I'll change the independent variable and then select again one point and graph it, showing a curve of what I have, and so on. I know that for this maybe I'll need to store those single points with an array or something. If anyone can help me, please do so. Thank you.

    The data you acquire is received in array form and based on the sample size, you should be able to determine the number of points in the array.  Then simply decide which points you want and put them into a second array and plot that array.

  • How to update multi-handle graph with a new set of data points

    I have multiple sets of data that all have the same number of columns but different numbers of rows. Each column is plotted on a graph. I want to keep the format of the original graph with the same number of handles, and update each handle with new data points by bringing in a new set of points.
    See attachment for example.
    Attachments:
    hiqgraph.HiQ ‏14 KB

    There are several ways to do this.
    1. You can create a HiQ script that plots the new data to the graph using the existing plots. The following three lines plot the new data into the three existing plots (indicated by the plot handles.) Put these lines into a HiQ script object, right-click and select Run.
    addplot(Graph2D_1,-1,data2[*,1],data2[*,2]);
    addplot(Graph2D_1,-2,data2[*,1],data2[*,3]);
    addplot(Graph2D_1,-3,data2[*,1],data2[*,4]);
    2. You can do it interactively by right-clicking on the individual plots and choosing Change... This will being up a dialog you can use to change the data in that plot. This will be difficult to do when plots are right on top of each other, so you may want to display the plot legend, where you can also right-click a
    nd select Change...
    3. I like your idea about DataSocket. This way it will happen automatically. Whenever the matrix published to DataSocket changes, the plot should automatically update.
    I hope this helps.
    David

  • Plotting of graph with more than 4000 data points in Excel

    Hi All,
    I am fairly new to labview world. I am trying to plot out line graphs of the results from my program into Excel worksheet. I have huge set of data points(10000) stored in each of 10 different worksheets in MS Excel workbook. I am trying to compile results into last sheet as graphical representation of all the various dataset into 10 different graphs.
    My problem is that I am getting error because MS Graph does not allow me to plot more than 4000 rows or datapoints. Is there better and cleaner way of programming this? Or if some one can provide an example of how to handle such case. I'll appreciate any help.
    My goal is to able to plot one set of data 1st then I will be able to run through various worksheets to compile into standalone results.
     ERROR MESSAGE: "Report Generation Toolkit: Graphs you create or edit in Microsoft Graph cannot contain more than 4,000 rows or columns, including row and column headers. "
    Also for example if we run Line Graph example and change the # of data points from 100 to 4000, we get same message.
    Error -41114 occurred at NI_ReportGenerationToolkit.lvlib:Excel_Insert_Chart.vi -> NI_Excel.lvclass:Excel Insert Graph.vi -> Line Graph (Excel).vi
    Thanks,
    Saurabh

    Hi Dennis,
    I am collecting waveform data from oscilloscope using labview in both data & graph format. So my program collects data for a particular operating condition & then saves the data on a worksheet. After it loads new operating condition & goes over same cycle. I have to save all the data points in excel for different use cases, which I am saving in different worksheet for each specific operating condition.
    Since I already have data saved in excel at the end of test, I am trying plot each use case in the same report for study & presentaion after tests are finished. I have not been able to do so. I read the post which you have mentioned, seems like newer excel or labview version have same issue. I am using LV 9.0
    I will try using decimation but if you have any better way of handling this problem, I'll appreciate if you can share that.
    Thanks for your help.

  • Digital Waveform graph with a lot of samples

    Hi,
    I have to display in a Digital Waveform Graph a lot of data read from a file(2.000.000 of samples for 36 signals). If I read the file and I try to display all the data, the Vi became unusable. For example, to zoom a graph region, it may take 30-40 seconds, scroll is impossible ecc, ecc..
    Apparently LV doesn't perform a decimation of points. In measurements studio 8, this problem doesn't exist...but I have to use LV 7.1..
    any suggestion ?
    At the moment I have developed a DLL in VC++ that perform a decimation of samples, but performance are not very good !
    Thank you for any idea.
    Regards.

    Hi Garraty,
    Excuse me but I have several questions for you.
    1)     Have you tried some kind of incremental approach, starting from 1 waveform and increasing towards 36? Do you experience some kind of on/off degeneration between, les’s say, 34 and 35 waveforms?
    2)     How can you decimate a digital pseudorandom sequence of 2M samples without loosing information?
    3)     Is this 2M samples an unavoidable constraint for your application?. Actually, it seems very difficult to extract some kind of visual information from a pseudorandom pattern of this length?
    Thank you very much.
    Kind Regards
    FiloP
    FiloP
    It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
    Richard P. Feynman

  • IGS graph with data table

    Hi all,
    I'd like to create an image of a graph with a data table below that contains the data displayed by the graph.  I know this is possible as of SP 8 of IGS 6.40, but I can't find anywhere any documentation on how I can pass this on to the Chart Element of the Graphics extension.
    Does anyone know what I should put in my custom XML or any other way of obtaining this result?  Any pointers to documentation that could get me on the right track would also be appreciated.
    Thanks,
    Tim

    Hi Kai,
    I had indeed seen that note about BW, so I thought the IGS was capable of doing it. I just had to do a similar call as BW.  Too bad this isn't supported.
    Anyways, thanks a lot for your answer.  I won't waiste my time looking for a way to do this anymore now.
    Thanks,
    Tim

  • Print XY Graph with 600000 data without taking Snapshot of graph

    Hi 
       I want to print a XY Graph with more than 600000 data with word format but the graph shouldn't be the snapshot can any body suggest please 

    A couple points:
    First, just because the data you send to a graph has 600,000 datapoints in it, that doesn't mean that you will see 600,000 values in your graph. Unless you are using a monitor the size of a house, the graph won't have nearly enough resolution to show all the data. The data will get decimated down to the resolution that is available on the graph. If you don't do it, the graph will.
    Second, what do you mean that it shouldn't be a "snapshot"?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • When I open Iphoto, I see all my photos for a second and then they disappear and only a white dotted box appears.  Then I click on it and for photos is a triangle with an exclamation point.  It doesn't happen to all but quite a lot. how to I get them back

    When I open Iphoto, I see all my photos for a second and then they disappear and only a white dotted box appears.  Then I click on it and for photos is a triangle with an exclamation point.  It doesn't happen to all but quite a lot. how to I get them back

    Have you recently deleted photos using the finder or run clean up software?  Is so restore your backup
    If not the backup your iPhoto Library and launch iPhoto while depressing the option and command keys. Rebuild your database
    LN

  • I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    Here's a quick example I threw together that generates a sort-of-bell-curve shaped data distribution, then performs the binning and plotting.
    -Kevin P.
    Message Edited by Kevin Price on 12-01-2006 02:42 PM
    Attachments:
    Binning example.vi ‏51 KB
    Binning example.png ‏12 KB

  • CRYSTAL REPORT GRAPH WITH DATE AND TIME

    Post Author: Dino Dentone
    CA Forum: Charts and Graphs
    Dear forum,
    I am developing a Visual Studio .net 2005 Windows Form,i have a sql table with 2 field:1) DATA (date and time)2) Temperatura (numeric)I have to make a line graph with numeric data axes.I have insert two parameters' to customize the filtering, so i can have a graph of the temperature between to date and time.If i choose two date's and time (parameters) like 20/04/2008 00:00:00 trought 20/05/2008 00:00:00 i have no problemBut if a choose a range minor of 1 day (some hours like from 15/05/2008 00:00:00 trought 15/05/2008 08:00:00) i have no graph.It sound like it don't use the time values?Thank's for the Help.

    There is some debugging info on the website. I've had problems getting the text to work. It was generally that I installed either the wrong 'version' of ImageMagick (the recommended one works for me--I'm running Vista x64 and one time installed the x64 version and it didn't work). I also installed Ghostscript to get the font list to work correctly. At one time I installed the x64 version of Ghostscript and it didn't work with the plug-in, either.
    I installed two items:
    ImageMagick: ImageMagick-6.4.9-3-Q16-windows-dll.exe
    Ghostscript: gs863w32.exe
    I don't know if it is necessary but I also added the fonts from
    ghostscript-fonts-std-8.11.tar.gz to the c:\Program Files (x86)\gs\fonts directory. Some, none, perhaps all, may already be installed just by installing ghostscript--it has been so long that I don't remember exactly. I do know that the contents of the gs fonts directory contains all the files in the .gz, I just don't remember if I put them there separately or as part of the gs install :)
    You need to make sure the font size is large enough. I usually use about 2-4% of height and export a single photo to make sure I see the text correctly.
    Tim does respond to email when he can so if you can't get it to work you can always drop him a line.

  • XY Graph with No Lines, Just Points?

    Hi All,
    I want to build a Pressure vs. Temperature graph.  This should be a standard XY graph, but I just want to see the point scatter with no lines connecting the points.  Is there a way to eliminate the lines between the points (or make them invisible)?
    Thanks!
    Solved!
    Go to Solution.

    You can do it in graph properties. Right click on graph and select Properties. Go to the Plots tab.  Select a point icon (anything other than <none>) in the third column of icons. Next select the top-most selection in the fourth column. It's the symbol with the plot points but no lines. This will give you waht you want.  

  • Labview XY graph with space between data and top/bottom of graph

    In Labview, how do I modify the properties of the XY Graph so that there is some empty space (of say 1 unit) between the top and bottom of my graph and the data points I'm plotting. For example, I have a sine wave and when its autoscaled, the top point is at the very top of the graph but I want some space between the top of the graph and the highest point of the sine wave.  I could "unautoscale it" and edit the minimum and maximum to be 1 above and below the data points but is there a way to set it so it stays that way regardless of the data points that I input?
    Thanks,
    Kevin

    elset191 wrote:  
    I don't know how big of a cushion it gives, but it's there.
    if you want to programmatically set it you can also do this (as I learned a bit ago right here on these forums!)
    Message Edited by for(imstuck) on 05-24-2010 03:45 PM
    Message Edited by for(imstuck) on 05-24-2010 03:46 PM
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    graphScale.PNG ‏9 KB

  • Convert a scatter graph with multiple data series into individual graphs

    I am trying to convert a scatter graph with multiple data series into individual graphs, with the series having the same formatting as in the graph when all series are together.
    Normally, if I delete any series, the color scheme for all the other series vanishes. I can then waste more time in having to re-adjust the  color and shape of the series, but this is tedious. This, I do not want. Is there an automated way to do this?
    Ideally, of course, all series would appear in little subsections in the space of the former one graph, all with individual axes, but I can't have all, so I'll settle with having several individual new graphs, each with just one series, and with the original
    formatting.
    Thx.

    How about creating a copy of the chart, and then setting all series except one to be transparent (no line, no marker)? Repeat for each series.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

Maybe you are looking for