
How to set the axis limits in Matplotlib? - Stack Overflow
I need help with setting the limits of y-axis on matplotlib. Here is the code that I tried, unsuccessfully.
python - How to put the legend outside the plot - Stack Overflow
seaborn is a high-level api for matplotlib. From seaborn v0.11.2, there is sns.move_legend as shown at Move seaborn plot legend to a different position. All of the parameters for .legend can be passed to …
python - Purpose of "%matplotlib inline" - Stack Overflow
Mar 26, 2017 · None of the responses to OP's question make sense to me. The default behavior (i.e., without using %matplotlib inline) is to display plots "inline." I've never in my life encountered a …
Make bold the lines around a plot matplotib [duplicate]
Feb 1, 2023 · Make bold the lines around a plot matplotib [duplicate] Asked 3 years ago Modified 3 years ago Viewed 1k times
python - How to embed matplotlib in pyqt - Stack Overflow
Sep 17, 2012 · Normally when I plot something using just matplotlib, the resulting interactive plot has the same tool menu as in your code with features like pan and zoom. However, when I use only …
How do I change the size of figures drawn with Matplotlib?
import matplotlib.pyplot as plt plt.rcParams["figure.figsize"] = (20,3) This is very useful when you plot inline (e.g., with IPython Notebook). As asmaier noticed, it is preferable to not put this statement in …
python - How to change tick label font size - Stack Overflow
Jun 17, 2011 · In a matplotlib figure, how can I make the font size for the tick labels using ax1.set_xticklabels() smaller? Further, how can one rotate it from horizontal to vertical?
Save plot to image file instead of displaying it - Stack Overflow
129 There was a section on the MatPlotLib documentation addressing exactly this issue, however it has since changed. It used to say that the easiest way to prevent the figure from popping up is to use a …
How do I set the figure title and axes labels font size?
from matplotlib import pyplot as plt fig = plt.figure() plt.plot(data) fig.suptitle('test title') plt.xlabel('xlabel') plt.ylabel('ylabel') fig.savefig('test.jpg') I want to specify font sizes for the figure title and the axis …
python - pyplot scatter plot marker size - Stack Overflow
In the pyplot document for scatter plot: matplotlib.pyplot.scatter(x, y, s=20, c='b', marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=No...