figsize Questions

16

How do I change the size of figure drawn with Matplotlib?
Homograph asked 1/12, 2008 at 21:24

14

Solved

How do I change the size of my image so it's suitable for printing? For example, I'd like to use an A4 paper, whose dimensions are 11.7 inches by 8.27 inches in landscape orientation.
Orcus asked 23/7, 2015 at 17:43

2

Solved

I'm having some trouble trying to change the figure size when using plt.subplots. With the following code, I just get the standard size graph with all my subplots bunched in (there's ~100) and obvi...
Brathwaite asked 12/11, 2013 at 15:0

4

Solved

I am wondering whether you can specify the size of a figure in matplotlib in centimeter. At the moment I write: def cm2inch(value): return value/2.54 fig = plt.figure(figsize=(cm2inch(12.8), cm2...
Incorporable asked 5/2, 2013 at 13:29

9

Solved

Say I have an image of size 3841 x 7195 pixels. I would like to save the contents of the figure to disk, resulting in an image of the exact size I specify in pixels. No axis, no titles. Just the i...
Adornment asked 5/12, 2012 at 0:34

0

I am building a webapp with interactive plots based on Jupyter and Voila. Inside the notebook I use ipywidgets for handling the interactivity and %matplotlib widget backend so I can update my plots...
Jackfish asked 17/4, 2020 at 13:4
1

© 2022 - 2024 — McMap. All rights reserved.