File:Sinus trace matplotlib escalier batons fleches.svg

Summary

Description
Français : Fonction sinus : tracé en escalier (haut), en bâtons (milieu) et en flèches (bas).
Date
Source Own work
Author Cdang
 
This plot was created with Matplotlib.
Category:Valid SVG created with Matplotlib#Sinus%20trace%20matplotlib%20escalier%20batons%20fleches.svg
import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(0, 2*np.pi, 20)
y = np.sin(x)

fig, listeAxes = plt.subplots(3, 1, constrained_layout=True)

listeAxes[0].step(x, y)

listeAxes[1].bar(x, y, width = 0.03)

listeAxes[2].quiver(x[:-1], y[:-1], np.diff(x), np.diff(y), scale_units="xy", scale=1, angles="xy", width=0.02)
# plt.axis("equal")

plt.savefig("sinus_trace_matplotlib_escalier_batons_fleches.svg", format="svg")

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-4.0#Sinus%20trace%20matplotlib%20escalier%20batons%20fleches.svg
Category:Self-published work Category:SVG trigonometric functions
Category:CC-BY-SA-4.0 Category:Pages using deprecated source tags Category:SVG trigonometric functions Category:Self-published work Category:Valid SVG created with Matplotlib