Dec-17-2018, 11:40 PM
(This post was last modified: Dec-17-2018, 11:59 PM by newbie2019.)
I am using spyder with python 3.7, I am reading a 2015 book that says this:
">>> plot (x,y,'o')
where the string 'o' ensures that a small circle is plotted at each data point".
I have tried several options and I see if I write plot(x,y,'orange') the plot is orange, so this third argument has nothing to do with the shape, it does with the colour.
This is the whole code in Spyder console:
Where can I learn all about the plot function in python 3.7?
THanks for your time.
I have to add that in this 2015 book xlabel('mass kg') is used but fails in python 3.7. I have to use xlabel("mass kg") instead.
I would like to read about xlabel in python 3.7.
">>> plot (x,y,'o')
where the string 'o' ensures that a small circle is plotted at each data point".
I have tried several options and I see if I write plot(x,y,'orange') the plot is orange, so this third argument has nothing to do with the shape, it does with the colour.
This is the whole code in Spyder console:
m = array([1.0,2.0,4.0,6.0,9.0,11.0]) V = array([0.13,0.26,0.50,-0.5,1.15,1.36]) plot(m,V,'brown')My question is, I have not imported any library in this code and when executed it works properly, where can I find a reference to learn about the arguments I can supply to the plot funcion? It is python 3.7.
Where can I learn all about the plot function in python 3.7?
THanks for your time.
I have to add that in this 2015 book xlabel('mass kg') is used but fails in python 3.7. I have to use xlabel("mass kg") instead.
I would like to read about xlabel in python 3.7.