About 5,500,000 results
Open links in new tab
  1. python - How to remove extreme values from matplotlib plot when

    Apr 19, 2013 · I want to do a 2d plot of the points with something like plt.plot(xvals, yvals, '.'), and it is important for me to set the axes automatically so that one can see the main distribution of points clearly. The reason that is has to be done automatically is that I'm doing ~100 plots and must be able to name and change things in the plots repeatedly.

  2. python - How to break a box plot axis with extreme outliers

    Apr 28, 2023 · You need to change a few things: # invert the grispec ratios f, (ax1, ax2) = plt.subplots(ncols=2, sharey=True, gridspec_kw={'width_ratios':[1, 5]}, figsize=(5,2)) # change the limits ax1.set_xlim(right=-1750) ax2.set_xlim(left=-700)

  3. python - matplotlib contourf with extreme values - Stack Overflow

    Oct 14, 2019 · Here is a code snippet to exhibit how vmin and vmax can be used with pcolormesh (as you said in the comment) but how to achieve a similar result with contourf. fig, axs = plt.subplots(2) Z = np.random.rand(100,100) Z[:1] *= 100. cmap = plt.get_cmap("viridis") p1 = axs[0].pcolormesh(Z, vmin=0., vmax=1, cmap=cmap) fig.colorbar(p1, ax=axs[0])

  4. Change plot size in Matplotlib – Python | GeeksforGeeks

    Jan 10, 2024 · We can permanently change the default size of a figure as per our needs by setting the figure.figsize. In this example, we are using Matplotlib to create a line plot with the default size and then adjusts the default figure size to [2, 2].

  5. Editing Plots in Python. A comprehensive list of how to ... - Medium

    Oct 8, 2019 · Adding titles, changing x and y labels or even changing figure sizes can be a tedious task as there are so many ways of plotting using Python.

  6. pyextremes - PyPI

    Jul 30, 2024 · pyextremes is a Python library aimed at performing univariate Extreme Value Analysis (EVA). It provides tools necessary to perform a wide range of tasks required to perform EVA, such as: extraction of extreme events from time series using methods such as Block Maxima (BM) or Peaks Over Threshold (POT)

  7. python - How to plot a line graph with extreme value changes …

    Jul 9, 2021 · I am trying to visualize the data that I have recorded with a benchmark. The problem that i have is that the value changes are rather big and a single data set consists of 10.000 values. I tried to visualize it with python but the resulting line graph doesn't look good. Do you have some advice or ideas how i could visualize the data better?

  8. Matplotlib Figure Size: Changing Dimensions & DPI

    Master Matplotlib figure size adjustments. This comprehensive guide explains how to change figure dimensions resolution (DPI) and aspect ratios using different methods from basic to advanced techniques. Learn the best practices for optimal visualization.

  9. The 3 ways to change figure size in Matplotlib - MLJAR

    Nov 2, 2022 · Learn three methods to change the figure size in Matplotlib for your Python plots. These approaches, applicable in Python scripts or Jupyter Notebooks, provide flexibility for creating visually appealing plots.

  10. How to Change the Size of a Figure in Matplotlib?

    Feb 3, 2025 · The class Figure has the method set_size_inches(), with which we can change the existing image’s width and height (measured in inches). Similarly, the method set_dpi() specifies the number of dots per inch.

  11. Some results have been removed