Matplotlib Graphic Plotting Tutorial with Python - [ Pyplot Plotting ] - 5/13

Veröffentlicht am: 23 August 2021
auf dem Kanal: Songur Technology
71
2

In this lesson you will learn about Markers! Now you can punctuate or mark in different formats instead of drawing. For instance

import matplotlib.pyplot as plt
import numpy as np

x = np.array([0, 1, 2, 3])
y = np.array([3 ,1 , 2, 7])


plt.plot(x, y, marker="o")

Here we put a third parameter, the marker.
By the way, x and y are permanent parameters, they have to be there all the time, sometimes you can just use x and sometimes just y. Because if x is not present, the system automatically defaults to it, for example, when y = [ 3, 1, 4, 7], x automatically defaults to x = [0, 1, 2, 3]

As we said, if you do marker="o", the line will disappear! and only two o-points will remain.

The default line pattern is marker=''--" so you can change these drawings.


Pycharm Download Link: https://www.jetbrains.com/pycharm/dow...
Python Download Link: https://www.python.org/downloads/rele...


GitHub: https://github.com/Songurdevoloper
Instagram:   / songur_technology  
Linkedin:   / songur-technology-8610a621a  


Auf dieser Seite können Sie das Online-Video Matplotlib Graphic Plotting Tutorial with Python - [ Pyplot Plotting ] - 5/13 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Songur Technology 23 August 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 71 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!