About 139,000 results
Open links in new tab
  1. python - Matplotlib plot with scalable/updatable x-axis - Stack Overflow

    Apr 4, 2015 · Here's something to get you started. It's adapted directly from your second example in the matplotlib docs - using the slider to update the plot bounds, rather than to scale the data. new_pos = axslider.val. ax.set_xbound(new_pos-viewwindow, new_pos+viewwindow) fig.canvas.draw_idle()

  2. Python matplotlib - setting x-axis scale - Stack Overflow

    plt.plot(valueX, scoreList) plt.xlabel("Score number") # Text for X-Axis plt.ylabel("Score") # Text for Y-Axis plt.title("Scores for the topic "+progressDisplay.topicName) plt.show() valueX = [1, 2, 3, 4] and scoreList = [5, 0, 0, 2]

  3. matplotlib - Scaling Y and X axis python graph - Stack Overflow

    Mar 15, 2019 · You could use plt.xlim([-10,0]) and plt.ylim([-10,0]) to specify the minimum and maximum values of your axes. I ran your code, and got the following chart: Is your concern that the data points along the lower end of your y axis are "scrunched up"? If that's the case, perhaps plotting on the log axis might help.

  4. Axis scales — Matplotlib 3.10.1 documentation

    By default Matplotlib displays data on the axis using a linear scale. Matplotlib also supports logarithmic scales, and other less common scales as well. Usually this can be done directly by using the set_xscale or set_yscale methods.

  5. How to Change Scale of Axis in Matplotlib - Matplotlib Color

    Jul 2, 2024 · Matplotlib is a popular visualization library in Python that allows users to create a wide range of plots and charts. One common requirement when working with plots is changing the scale of the axis. In this article, we will explore various methods to …

  6. matplotlib.pyplot.plotMatplotlib 3.10.1 documentation

    matplotlib.pyplot.plot# matplotlib.pyplot. plot (* args, scalex = True, scaley = True, data = None, ** kwargs) [source] # Plot y versus x as lines and/or markers. Call signatures:

  7. Python Matplotlib: Ultimate Guide to Beautiful Plots!

    May 8, 2024 · Whether you are a beginner in data analysis or an experienced data scientist, Python Matplotlib offers a comprehensive set of tools to create customizable and scalable visual representations of data. From simple line graphs to complex 3D plots, Matplotlib can do it all.

  8. Change plot size in Matplotlib – Python | GeeksforGeeks

    Jan 10, 2024 · Change Plot Size in Matplotlib in Python. There are various ways we can use those steps to set size of plot in Matplotlib in Python: Change the Size of Figures using set_figheight () and set_figwidth () In this example, the code uses Matplotlib to create two line plots. The first plot is created with default size, displaying a simple line plot.

  9. Comprehensive Guide to Using Matplotlib.pyplot.yscale() in Python

    Nov 28, 2024 · Matplotlib.pyplot.yscale() in Python is a powerful function that allows you to set the scaling of the y-axis in your plots. This function is an essential tool for data visualization, especially when dealing with data that spans multiple orders of magnitude or when you want to emphasize certain aspects of your data.

  10. Matplotlib.pyplot.autoscale() in Python - GeeksforGeeks

    Jun 23, 2020 · matplotlib.pyplot.autoscale () is a method for simple axis view autoscaling. It turns autoscaling on or off, and then, if autoscaling for either axis is on, it performs the autoscaling on the specified axis or axes. Syntax: matplotlib.pyplot.autoscale …

  11. Some results have been removed