36 questions
2
votes
1
answer
56
views
Seaborn fig_size = textwidth: figure much smaller than expected
I'm having an issue with setting the figure and font sizes in my seaborn plots to make sure that everything is the expected size and can be pasted into a Latex file for publication. Fig_size is set to ...
2
votes
0
answers
129
views
How to configure a global size for all Seaborn figure-level plots?
I'm trying to pre-configure a global size for all Seaborn figure-level plots (i.e. relplot, displot, catplot), without manually specifying the size every time I call them.
I can do the same for axes-...
1
vote
3
answers
615
views
Using plt.figure(figsize=()) results in multiple plots. How can I fix it?
My knowledge of python is very rudimentary, and I’m using it properly for the first for a summer project. I’m plotting the orbit diagram for a logistic map. In order to increase the size of my plot, I ...
1
vote
1
answer
115
views
Matplotlib plot not adhering to figure dimensions
I'm trying to create a figure with subplots using the GridSpec method of a specific size. The size I'm trying to specify is 4.205 x 2.2752 inches to fit as a panel in an academic figure. I'm using fig....
0
votes
0
answers
32
views
Changing scale on axes (matplotlib)
x, y, z = np.mgrid[xx[0]:xx[-1]:complex(0, nx), yy[0]:yy[-1]:complex(0, ny), zz[0]:zz[-1]:complex(0, nz)]
extent1 = [x.min(), x.max(), z.min(), z.max()]
extent2 = [y.min(), y.max(), z.min(), z.max()]
...
0
votes
1
answer
148
views
Constant axes/spine border size for multiple plots
In Python Matplotlib, I would need give advice how to keep exactly same axes/spine border size for multiple plots. Independent of how many digits the axis contains.
Generated plots:
Code bellow shows ...
1
vote
2
answers
325
views
Saved matplotlib size on pdf is larger than original figure
When checking matplotlib figure size is :
fig_width, fig_height = plt.gcf().get_size_inches()
print(fig_width, fig_height)
6.0 4.0
´<Figure size 3600x2400 with 0 Axes>´
One of the params to ...
1
vote
0
answers
114
views
How to change figsize keeping imshow aspect='equal'?
Is there a way to change the figsize of a matplotlib figure after drawing an image with ax.imshow()?
I have a numpy array of size (10, 100) (let's say) and I want to plot it with ax.imshow(). It ...
1
vote
0
answers
97
views
Matplotlib figsize incorrect on screen
I would like to obtain a 10x10 cm matplotlib-figure. The following code opens a figure that is 12.2 cm on one screen and 7.0 cm on another screen (PDF in Acrobat Reader: 13.5 / 7.8 cm).
Obviously some ...
2
votes
1
answer
161
views
One figure with two subplots and one with three do not have the same size
I am trying to create two figures with squared subfigures for an article. My problem is that when I do it for two subfigures I get one size and when I do it for three I get a different one, and I ...
-3
votes
1
answer
1k
views
How to make the x axis of figure wider using pyplot in python since figsize is not working [duplicate]
I want to make the x axis of a figure wider in matplotlib and I use the following code.
But it seems that figsize does not have any effect. How I can change the size of the figure?
data_dates = np....
1
vote
1
answer
233
views
Matplotlib plotsize- Size not changing
The size of the of this plot is coming out to be <Figure size 864x432 with 0 Axes>
plt.figure(figsize =(12,6))
pd.plotting.scatter_matrix(Effect_Wf_f)
plt.show()
Why is it not changing? -- ...
2
votes
1
answer
923
views
Changing the figsize in the upsetplot module
How I can change the figsize in the upsetplot module in Python? I see that there is a fig parameter, but I don't get how to assign a new figure with a predefined size to it.
0
votes
1
answer
360
views
How to change the size of just the plots in Matplotlib, as in the rectangle within which plot exists? 'figsize' changes the size of the whole image
In Python the 'figsize' sets the size of the whole image, so if there are two decimal points in ticks, the figure size is different when ticks have 4 decimal points. How can I set the size of just the ...
0
votes
1
answer
2k
views
R - How to change size of a whole figure produced by grid.arrange?
I want to display multiple ggplot objects in one figure using package gridExtra. It works, but titles are cut. I can fix it by changing plots font size, but I would rather change the width of the ...