File:Sinus trace matplotlib escalier batons fleches.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 540 × 360 pixels, file size: 30 KB)

Captions

Captions

Three types of plots of the sine functin with Python/Matplotlib

Summary[edit]

Description
Français : Fonction sinus : tracé en escalier (haut), en bâtons (milieu) et en flèches (bas).
Date
Source Own work
Author Cdang
Created with Matplotlib-logo 
This plot was created with Matplotlib.
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[edit]

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.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current21:53, 2 April 2019Thumbnail for version as of 21:53, 2 April 2019540 × 360 (30 KB)Cdang (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata