1 | initial version |
Getting the same scale for the x and y axes is achieved using aspect_ratio
.
Getting an outer box is achieved using frame
. The ticks will be on the box though.
Not sure how to get the labels on the min side of the axes...
The following is maybe already a step closer to your desired output.
h = plot(x, (x, -73.83, 73.83), linestyle="--")
g = plot(-0.7350*x + 67, (x, -73.83, 73.83), linestyle="--")
p = [(11.13, 58.82), (4.99, 10.03), (17.24, 42.79), (23.80, -73.83), (57.84, -37.82)]
r = list_plot(p, axes_labels=['(+) GE', '(+) CE'])
r += text('A CMSCI = 0.131', (11.135, 58.82))
H = h + g + r
H.show(aspect_ratio=1, frame=True)
See the possible options to show
in the documentation, either by typing H.show?
after defining H
as above, or online at:
2 | No.2 Revision |
Getting the same scale for the x and y axes is achieved using aspect_ratio
.
Getting an outer box is achieved using frame
. The ticks will be on the box though.
Not sure how to get the labels on the min side of the axes...
The following is maybe already a step closer to your desired output.
h = plot(x, (x, -73.83, 73.83), linestyle="--")
g = plot(-0.7350*x + 67, (x, -73.83, 73.83), linestyle="--")
p = [(11.13, 58.82), (4.99, 10.03), (17.24, 42.79), (23.80, -73.83), (57.84, -37.82)]
r = list_plot(p, axes_labels=['(+) GE', '(+) CE'])
r += text('A CMSCI = 0.131', (11.135, 58.82))
H = h + g + r
H.show(aspect_ratio=1, frame=True)
frame=True, ymin= -73.83, ymax=73.83)
See the possible options to show
in the documentation, either by typing H.show?
after defining H
as above, or online at: