You can use the magic function %matplotlib inline to enable the inline plotting, where the plots/graphs will be displayed just below the cell where your plotting commands are written. It provides interactivity with the backend in the frontends like the jupyter notebook.
Initialize a list for x and y with a single value. Limit X and Y axis range for 0 to 5. Lay out a grid in the current line style. Plot x and y using plot() method with marker="o", markeredgecolor="red", markerfacecolor="green".
You can use markeredgewidth
(or mew
). You'll want to combine it with markersize
, otherwise you get thick but tiny markers.
For example:
plt.plot([2,4,6,1,3,5], '+', mew=10, ms=20)
Use markeredgewidth
in connection with markersize
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With