Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project!

## gnuplot-info

 [Gnuplot-info] autoscale in x1y1 and x1y2 axis From: goffart - 2008-05-30 06:13:24 ```Hi, I'm trying to plot two sets of data into a histogram. The fist set has values between 0 to 100, the second set has values between -100 to +100. Each set has its own axis, the x1y1 and x1y2 axis. Autoscale scales the axis independent, but I need the origin of both axis to be coupled. This means the zero on the left should be on the same hight as the zero on the right. Otherwise, the bars of the histogram start at different hight. I can achieve that by plotting the data using just one axis, but extremly small values in one data set and great values in the other one lead to inacceptable results. Is there a way to achieve what I want? BR, goffart -- View this message in context: http://www.nabble.com/autoscale-in-x1y1-and-x1y2-axis-tp17542371p17542371.html Sent from the Gnuplot - User mailing list archive at Nabble.com. ```
 Re: [Gnuplot-info] autoscale in x1y1 and x1y2 axis From: Dieter Jurzitza - 2008-06-14 22:30:00 ```Dear goffart, I would try adjust both ranges to a symmetrical positive / negative range, otherwise I cannot see how to get where you want to get to: set yrange [-100:100] set y2range [ -1:1] will give you the same "zero" in "graph" coordinates. But how can you expect the position of "zero" to be identical given that one range starts at zero whereas the other range starts at -100? Say, Y = [ y_1:y_2 ] be the range of y-values you use, Y2 = [ y2_1:y2_2 ] be the range of y2-values you use, then "0" will be at the same "graph" position if: - 0 is within y_1, y_2 and y2_1, y2_2, respectively and - y_2/y_1 = y2_2/y2_1 hope this helps, or I got you entirely wrong, take care Dieter Jurzitza -- ----------------------------------------------------------- | \ /\_/\ | | ~x~ |/-----\ / \ /- \_/ ^^__ _ / _ ____ / <°°__ \- \_/ | |/ | | || || _| _| _| _| if you really want to see the pictures above - use some font with constant spacing like courier! :-) -----------------------------------------------------------Am Donnerstag, 29. Mai 2008 20:07:23 schrieb goffart: > Hi, > > I'm trying to plot two sets of data into a histogram. The fist set has > values between 0 to 100, the second set has values between -100 to +100. ****** ```