|
|
Two scales in the same y axis
Pals,
Is it possible to put two different scales (like kg/s and
lb/s) one to the left side, the other to the right side of the same
vertical axis (let's say, the yaxis)?
Thanks for any help.
Oscar
|
|
0
|
|
|
|
Reply
|
oscar.rotava (1)
|
11/13/2009 1:05:41 PM |
|
rotava wrote:
> Is it possible to put two different scales (like kg/s and
> lb/s) one to the left side, the other to the right side of the same
> vertical axis (let's say, the yaxis)?
Not really. gnuplot only supports putting separate scales on the left
and right side of the entire graph, or to both sides of the zeroaxis.
So the only way this would work is if x=0 happened to be exactly where
you want that doubly annotated axis to be. And we don't support
arbitrary non-linear scales, so the relation between the two scale must
be linear or logarithmic.
So what you're trying to do might be accomplished like this, assuming
you know the axis range beforehand:
f_y2(y) = 0.507 * y # or whatever the linear(!) relation is
set tics axis
set yzeroaxis ; set y2zeroaxis
set ytics nomirror ; set y2tics
set yrange [ymin:ymax] ; set y2range [f_y2(ymin):f_y2(ymax)]
|
|
0
|
|
|
|
Reply
|
ISO
|
11/13/2009 2:09:06 PM
|
|
On 13 nov, 12:09, Hans-Bernhard Br=F6ker <HBBroe...@t-online.de> wrote:
> rotava wrote:
> > =A0 =A0 =A0 =A0 =A0Is it possible to put two different scales (like kg/=
s =A0 and
> > lb/s) one to the left side, the other to the right side of the same
> > vertical axis (let's say, the yaxis)?
>
> Not really. =A0gnuplot only supports putting separate scales on the left
> and right side of the entire graph, or to both sides of the zeroaxis.
> So the only way this would work is if x=3D0 happened to be exactly where
> you want that doubly annotated axis to be. =A0And we don't support
> arbitrary non-linear scales, so the relation between the two scale must
> be linear or logarithmic.
>
> So what you're trying to do might be accomplished like this, assuming
> you know the axis range beforehand:
>
> =A0 =A0 =A0 =A0 f_y2(y) =3D 0.507 * y # or whatever the linear(!) relatio=
n is
> =A0 =A0 =A0 =A0 set tics axis
> =A0 =A0 =A0 =A0 set yzeroaxis ; set y2zeroaxis
> =A0 =A0 =A0 =A0 set ytics nomirror ; set y2tics
> =A0 =A0 =A0 =A0 set yrange [ymin:ymax] ; set y2range [f_y2(ymin):f_y2(yma=
x)]
x=3D0 means really 0 or the origin of the xrange (xmin)?
Oscar
|
|
0
|
|
|
|
Reply
|
rotava
|
11/13/2009 2:59:37 PM
|
|
rotava wrote:
> x=0 means really 0 or the origin of the xrange (xmin)?
The former. See "help zeroaxis"
|
|
0
|
|
|
|
Reply
|
ISO
|
11/13/2009 4:07:13 PM
|
|
|
3 Replies
1315 Views
(page loaded in 0.2 seconds)
Similiar Articles: Two scales in the same y axis - comp.graphics.apps.gnuplot ...Pals, Is it possible to put two different scales (like kg/s and lb/s) one to the left side, the other to the right side of the same vertical axis (let's say ... Normalize X axis and set Y axis limit - comp.soft-sys.matlab ...Two scales in the same y axis - comp.graphics.apps.gnuplot ... plotyy tick marks - comp.soft-sys.matlab Normalize X axis and set Y axis limit ... using the plotyy command ... Dateticks compatible with plotyy ans xlim - comp.soft-sys.matlab ...Two scales in the same y axis - comp.graphics.apps.gnuplot ... 3 y axis plot graph - comp.soft-sys.matlab... have their own scale, with plotyy I can only get two scales. ... Y axis plot labeling? Want auto scaling, but want to format ...Two scales in the same y axis - comp.graphics.apps.gnuplot ..... Y axis scales auto ... want to plot two y-axis ... need there to be two x axis and two y axis (top and ... box plots with 2 different y axes - comp.soft-sys.matlab ...Multiple line plots, two y axes - comp.soft-sys.matlab... time period, but the y ... How to set to different y-axis with the same scale 4 1 I need plot two different y ... Two x axis and two y axis on imagesc - comp.soft-sys.matlab ...Two scales in the same y axis - comp.graphics.apps.gnuplot ... Two x axis and two y axis on imagesc - comp.soft-sys.matlab ... I need there to be two x axis and two y axis ... plotyy: setting ylim for both right & left - comp.soft-sys.matlab ...Two scales in the same y axis - comp.graphics.apps.gnuplot ..... supports putting separate scales on the left and right side of the entire graph, or to both ... soft-sys ... Bar chart double y axis question - comp.soft-sys.matlabTwo scales in the same y axis - comp.graphics.apps.gnuplot ... Bar chart double y axis question - comp.soft-sys.matlab Bar chart double y axis question - comp.soft-sys ... Similarity Curves - comp.soft-sys.matlabTwo scales in the same y axis - comp.graphics.apps.gnuplot ... Similarity Curves - comp.soft-sys.matlab Two curves X and Y are said to be similar ... but they each have ... plotyy tick marks - comp.soft-sys.matlabNormalize X axis and set Y axis limit - comp.soft-sys.matlab ... Two scales in the same y axis - comp.graphics.apps.gnuplot ... plotyy tick marks - comp.soft-sys.matlab ... Two different scales on the same Y-axis in excel chart? - Yahoo ...Best Answer: Yes, it is possible. It's called plotting on a secondary axis. 1. Simply plot the two sets of data, say x1 and x2 as you normally would do 2 ... Dual-Scaled Axes in GraphsDashboard Design, I considered graphs with two quantitative scales on a single axis (either X or Y) a viable ... measured the number of units sold for the same four ... 7/22/2012 8:51:37 AM
|
|
|
|
|
|
|
|
|