Problems with drawing graphs by using matplotlib

i started to use matplotlib to draw graphs but at some points it does not work out. when i am using: x = linspace(a,b,n) instead of x = arange(a,b,n) it does not show me any graph and i don't know why. Can you please help me in this case?

2 Commenti

matplotlib is a python library. This is a Matlab forum. Am I missing something?
https://www.mathworks.com/help/matlab/matlab_external/create-object-from-python-class.html

Accedi per commentare.

Risposte (1)

Hey guys,
Check out the following cool tutorial on Python matplotlib tutorial with example.
You will learn how to report and chart using the Python matplotlib library.
The matplotlib.pyplot is the collection of command style and functions that make matplotlib works like a MATLAB in Python. Each pyplot function makes some change to a figure and we will able to analyze the data based on that figure.
If you do not know what is Jupyter notebook then check out the following link. It is very useful for me.
Hope this helps.

Categorie

Richiesto:

il 24 Ago 2016

Commentato:

il 10 Giu 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by