Plots with very small y values

Q&A for Visual Basic, Visual Basic .NET, and PowerBasic developers using DPlot
Post Reply
asanture
Posts: 1
Joined: Thu Jan 04, 2007 10:37 am

Plots with very small y values

Post by asanture »

Hi there,
I've been using DPlotJr to plot likelihoods for different configurations across iterations (ie using _AddData each iteration). When I have "reasonable" likelihoods of the order 1xe^-40 DPlot plots beautifully, but with very small likelihoods of the order 1xE^-80 DPlot seems to read every y value as zero and plots accordingly. Can you please tell me the minimum y value that DPlot will accept?
Thanks for your help!
Anna
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

You should use DPlot_AddData8 rather than DPlot_AddData, and use Double for your data rather than Single. It is actually your program that is truncating the data, not DPlot Jr or DPLOTLIB.DLL. The range in magnitudes for 4-byte floating point numbers (VB's Single) is ~1.175E-38 to ~3.402E+38. For 8-byte floats (Double) the range is ~2.225E-308 to ~1.798E+308.
Visualize Your Data
support@dplot.com
Post Reply