Skip to content

Commit aae2470

Browse files
committed
Added options x2{max,min,range,inv,label}
For some reason this one axis was omitted
1 parent b1e4caa commit aae2470

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

gnuplotlib.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ class gnuplotlib has a separate gnuplot process and a plot window. If multiple
776776
squarexy are synonyms. In 2D, these are all synonyms. Using any of these in 3D
777777
requires Gnuplot >= 4.4
778778
779-
- {x,y,y2,z,cb}{min,max,range,inv}
779+
- {x,x2y,y2,z,cb}{min,max,range,inv}
780780
781781
If given, these set the extents of the plot window for the requested axes.
782782
Either min/max or range can be given but not both. min/max are numerical values.
@@ -792,7 +792,7 @@ class gnuplotlib has a separate gnuplot process and a plot window. If multiple
792792
The 'cb' axis represents the color axis, used when color-coded plots are being
793793
generated
794794
795-
- xlabel, ylabel, zlabel, y2label, cblabel
795+
- xlabel, x2label, ylabel, zlabel, y2label, cblabel
796796
797797
These specify axis labels
798798
@@ -1141,8 +1141,9 @@ class gnuplotlib has a separate gnuplot process and a plot window. If multiple
11411141
'rgbimage',
11421142
'equation', 'equation_above', 'equation_below',
11431143
'xmax', 'xmin', 'xrange', 'xinv', 'xlabel',
1144-
'y2max', 'y2min', 'y2range', 'y2inv', 'y2label',
1144+
'x2max', 'x2min', 'x2range', 'x2inv', 'x2label',
11451145
'ymax', 'ymin', 'yrange', 'yinv', 'ylabel',
1146+
'y2max', 'y2min', 'y2range', 'y2inv', 'y2label',
11461147
'zmax', 'zmin', 'zrange', 'zinv', 'zlabel',
11471148
'cbmax', 'cbmin', 'cbrange', 'cblabel'))
11481149

@@ -1388,14 +1389,14 @@ def _massageSubplotOptionsAndGetCmds(subplotOptions):
13881389
cmds = ['set grid']
13891390

13901391
# set the curve labels
1391-
for axis in ('x', 'y', 'y2', 'z', 'cb'):
1392+
for axis in ('x', 'x2', 'y', 'y2', 'z', 'cb'):
13921393
if axis + 'label' in subplotOptions:
13931394
cmds.append('set {axis}label "{label}"'.format(axis = axis,
13941395
label = subplotOptions[axis + 'label']))
13951396

13961397
# set the plot bounds
13971398
ranges = dict()
1398-
for axis in ('x', 'y', 'y2', 'z', 'cb'):
1399+
for axis in ('x', 'x2', 'y', 'y2', 'z', 'cb'):
13991400
# I deal with range bounds here. These can be given for the various
14001401
# axes by variables (W-axis here; replace W with x, y, z, etc):
14011402
#

0 commit comments

Comments
 (0)