06-22-2016 12:24 AM
07-12-2016 09:58 AM
It is not clear what your objective is. Your Y axis has three distince ranges - "-2.0 to 2.0", "4.24 to 4.36" and "20 to 42". These are not drawn with a consistent linear scale. Are they really one graph? Why not separate it into three graphs, one each for "MD Taps", "Volts" and "Auxiliary MW".
Alternatively, you could use bands in the graph to display the three regions, especially if each region does not end exactly at the value on the axis. With SGPLOT, you can use the BAND statement.
07-12-2016 07:00 PM
Thanks for your comments. I overlay 5 different graphs with different value ranges on the 2 vertical axises, i.e. 2 graphs on the left axis and 3 graphs on the right axis. I had to split the axis value ranges into non linear groups and was just looking at a way to have the axis value ranges the same colour as the corresponding graphs.
I'll have a look at SGPLOT and BAND as you suggested.
07-14-2016 11:39 AM
What ius the benefit of multiple plots with different value ranges on one Y axis? Could you not gain the same insight if the plots were stacked on a common x-axis? Can you provide a non-confidential example?
07-14-2016 09:35 PM
Attached is my code and the graph output, haven't been able to attach the dataset, won't accept it.
I actually plot 6 variables on a shared x axis and 2 vertical axes. You'll notice the uneven axis ranges in the axis statements for the vertical axes, my aim was to be able to specify different colours for each range so it makes the graph more readable. E.g. in the right vertical axis, to have -2 to 2 in red, 4.24 to 4.36 in purple and the rest in green.