For faster navigation, this Iframe is preloading the Wikiwand page for Matplotlib.

Matplotlib

Matplotlib
logo
Ilustracja
Zrzut ekranu z wykresów i kodu Matplotlib
Autor John D. Hunter
Pierwsze wydanie 2003[1]
Aktualna wersja stabilna 3.9.2
(13 sierpnia 2024) [±]
Język programowania Python
System operacyjny Wieloplatformowy
Rodzaj Biblioteka do tworzenia wykresów
Licencja Licencja Matplotlib
Strona internetowa

Matplotlibbiblioteka do tworzenia wykresów dla języka programowania Python i jego rozszerzenia numerycznego NumPy. Zawiera ona API „pylab” zaprojektowane tak aby było jak najbardziej podobne do MATLABa, przez co jest łatwy do nauczenia przez jego użytkowników. Matplotlib został napisany i jest utrzymywany głównie przez Johna Huntera, i jest dostępny na licencji przypominającej licencję BSD.

Przykład użycia

[edytuj | edytuj kod]

Poniżej znajduje się kod rysujący Funkcję Rosenbrocka:

Funkcja Rosenbrocka narysowana za pomocą biblioteki Matplotlib (kod pod spodem).
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.colors import LogNorm
import matplotlib.pyplot as plt
import numpy as np

fig = plt.figure()
ax = fig.add_axes([0, 0, 1, 1], projection='3d', auto_add_to_figure=False)
ax.azim = -128
ax.elev = 43

s = .05
X = np.arange(-2, 2.+s, s)
Y = np.arange(-1, 3.+s, s)
X, Y = np.meshgrid(X, Y)
Z = (1.-X)**2 + 100.*(Y-X*X)
ax.plot_surface(X, Y, Z, rstride=1, cstride=1, norm=LogNorm(), cmap=cm.jet)

ax.set_xlabel("x")
ax.set_ylabel("y")

fig.add_axes(ax)
plt.show()

Konkurencyjne rozwiązania

[edytuj | edytuj kod]

Przypisy

[edytuj | edytuj kod]
  1. License — Matplotlib 3.1.1 documentation [online], matplotlib.org [dostęp 2019-11-15].

Linki zewnętrzne

[edytuj | edytuj kod]
{{bottomLinkPreText}} {{bottomLinkText}}
Matplotlib
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?