python 绘图笔记

http://old.sebug.net/paper/books/scipydoc/matplotlib_intro.html

import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(0, 10, 1000)
y = np.sin(x)
z = np.cos(x**2)

plt.figure(figsize=(8,8))
plt.plot(x,y,label="$sin(x)$",color="red",linewidth=2)
plt.plot(x,z,"b--",label="$cos(x^2)$")
plt.xlabel("Time(s)")
plt.ylabel("Volt")
plt.title("PyPlot First Example")
plt.ylim(-1.2,1.2)
plt.legend()
plt.show()

已有 5 条评论
  1. Austot

    Cialis Viagra Torino Natural Viagra Dublin cheapest cialis 20mg Order Birth Control Online

    Austot 回复
  2. Ellcurfak

    Viagra 100 Mg Keine Wirkung On Line Levaquin Mastercard Medication Colchicine 0.5mg levitra online paypal Cialis No Prescription Montreal

    Ellcurfak 回复
  3. RebPlesum

    buy generic accutane no prescription Acheter Du Dermipred En Ligne buy viagra online Cialis Con Marihuana

    RebPlesum 回复
  4. Ellcurfak

    Oral Amoxil Solution Cephalexin Uti viagra Metformin Pills From Asia

    Ellcurfak 回复
  5. Austot

    Propecia Espana Donde Buy Priligy In Europe Mavidol viagra Quality Rx Order Now Direct Zentel 400mg Echinococcosis Internet Free Shipping Cialis Nombre Generico

    Austot 回复
发表新评论