in reply to How to plot a graph setting a y axis with labels not linearly scaling

Nellina:

I'm not familiar with xmgrace, but if you want to control your axes, then you can rescale your data accordingly. Specifically, you can compute a new set of Y values mapping the current values to the scale you're using on your labels. However, you should make sure your data is sane. You have a problem in your current data, as you appear to want -4.2648 to be labelled as 0.001 in two places, and have the same problem with -1.2817.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: How to plot a graph setting a y axis with labels not linearly scaling

Replies are listed 'Best First'.
Re^2: How to plot a graph setting a y axis with labels not linearly scaling
by Nellina (Initiate) on Jan 31, 2011 at 12:02 UTC
    My problem is: how can I compute a new set of Y values mapping the current values to the scale I'm using on mylabels? My dataset is right for xmgrace. Obviously I need to arrange it for Perl.
      I have estimated my normal probability distribution, but I have some problems with the graph because I cannot reproduce the usual probability y-scale. I know the math rule for y-axis, but I cannot put the labels (0.001, 0.01,....,99, 99.9) right by the data values using GD::Graph module or perlchartdir package.
        Try Gnuplot for advanced graphing. See Gnuplot Samples There is a Perl module for it, gnuplot, and it can also be easily run thru IPC.

        The GD::Graph module is not as extensive a toolkit as Gnuplot, but there probably are ways possible to do what you need with a bit of trickery, like use GD to make an reusable axis template graphic, then do an overlay of your statistical data onto it.

        You could also, make your own custom graph using the canvas or drawing widget of the various toolkits, for example, Tk Realtime data aquisition


        I'm not really a human, but I play one on earth.
        Old Perl Programmer Haiku ................... flash japh