I am creating a figure with 3 subplots, and was wondering if there is any way of removing the frame around them, while keeping the axes in place?
相关问题
- How to plot a draggable polygon
- Tick label text and frequency in matplotlib plot
- Matplotlib: how to set ticks of twinned axis in lo
- Matplotlib differentiate between mean and median w
- matplotlib: color by dict without normalization
相关文章
- How to use a framework build of Python with Anacon
- Adding line markers when using LineCollection
- How to add clipboard support to Matplotlib figures
- Adding a legend to a matplotlib boxplot with multi
- Matplotlib pyplot axes formatter
- matplotlib bwr-colormap, always centered on zero
- ImportError: No module named cycler
- Matplotlib boxplot x axis
Try
plt.box(on=None)
It removed only the bounding box (frame) around plot, which is what I was trying to do.plt.axis('off')
removed tick labels and the bounding box, which wasn't what I was looking to accomplish.Hope this helps.
You can achieve something like this with the
axis('off')
method of an axis handle. Is this the kind of thing you are after? (example code below the figure).If you want to remove the axis spines, but not the other information (ticks, labels, etc.), you can do that like so:
or, more easily, using seaborn:
Both approaches will give you: