Conversion from data space to plot size ratio?

Q&A for C, C++, and/or C# developers using DPlot
Post Reply
rkm
Posts: 27
Joined: Wed Nov 21, 2012 11:15 am

Conversion from data space to plot size ratio?

Post by rkm »

Is there a macro or other simple means to convert from data space to plot size ratios?

I'd like to use TextNoteEx() with the X value expressed in data space coordinates but the Y value expressed in the default ratios of plot size.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

For a linear Y scale you could use an equation:

1-(<your Y value>-$YMIN)/($YMAX-$YMIN)
Visualize Your Data
support@dplot.com
rkm
Posts: 27
Joined: Wed Nov 21, 2012 11:15 am

Post by rkm »

Thanks, I'll do that. Was just wondering if there was I macro I might have missed.

-rob
Post Reply