Combined 2d plot: how to change the size of the object?
I have created a matrix plot and a line and combined them as follows:
m = matrix_plot([[1,0,1,0,1,0,1,0],
[0,1,0,1,0,1,0,1],
[1,0,1,0,1,0,1,0],
[0,1,0,1,0,1,0,1],
[1,0,1,0,1,0,1,0],
[0,1,0,1,0,1,0,1],
[1,0,1,0,1,0,1,0],
[0,1,0,1,0,1,0,1],
[1,0,1,0,1,0,1,0]],
aspect_ratio=1,
frame=False)
Q = line([(-0.5, 0), (1, 1)], thickness=3)
Combined graphics is (m+Q)
.
I would like to change the size of (m+Q)
, but (m+Q).set_axes_range()
does not affect the values.
Here is an example showing no change when using set_axes_range()
:
What method should I use?