Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Labels
Milestone
Description
Bug summary
when setting axes position withax = plt.axes(position = [...])
the position data is not being incorporated.
Code for reproduction
importmatplotlib.pyplotaspltfig=plt.figure()pos1= [0.1,0.1,0.3,0.8]pos2= [0.5,0.1,0.4,0.6]ax1=plt.axes(position=pos1)ax1.plot([0,1], [0,1],color='r',linewidth=3)ax2=plt.axes(position=pos2)ax2.plot([1,0], [0,1],color='b',linestyle='--')
Actual outcome
The two axes completely overlap
Expected outcome
Would expect two separate axes (these were created by addingax1.set_axes(pos1)
andax2.set_axes(pos2)
, which should not be necessary)
Operating system
Windows
Matplotlib Version
3.4.2
Matplotlib Backend
Qt5Agg
Python version
3.8.8
Jupyter version
No response
Other libraries
No response
Installation
conda
Conda channel
No response