Python Forum
histogram with matplotlib
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
histogram with matplotlib
#10
Try:
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
#---| Style
plt.style.use('seaborn')
mpl.rcParams['figure.figsize'] = (7,4)
 
x = np.linspace(0, 2 * np.pi)
y_sin = np.sin(x)
y_cos = np.cos(x)
plt.errorbar(x, y_sin, yerr=0.2, uplims=True)
plt.errorbar(x, y_cos, yerr=0.2, uplims=True)
plt.show()
[Image: Uy50Uf.jpg]
Reply


Messages In This Thread
histogram with matplotlib - by vaugirard - May-09-2018, 10:08 PM
RE: histogram with matplotlib - by scidam - May-09-2018, 11:55 PM
RE: histogram with matplotlib - by vaugirard - May-09-2018, 11:59 PM
RE: histogram with matplotlib - by killerrex - May-10-2018, 12:13 AM
RE: histogram with matplotlib - by vaugirard - May-30-2018, 09:37 PM
RE: histogram with matplotlib - by killerrex - May-30-2018, 10:16 PM
RE: histogram with matplotlib - by vaugirard - May-30-2018, 10:21 PM
RE: histogram with matplotlib - by vaugirard - May-31-2018, 04:21 AM
RE: histogram with matplotlib - by vaugirard - May-31-2018, 09:40 PM
RE: histogram with matplotlib - by snippsat - Jun-01-2018, 02:39 AM
RE: histogram with matplotlib - by vaugirard - Jun-01-2018, 04:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to fit a 2D histogram like in ROOT? Zandar 2 4,253 Aug-06-2019, 03:01 PM
Last Post: Zandar
  histogram error alyssaantarctica 1 3,850 Jul-09-2018, 10:46 PM
Last Post: Larz60+
  Plot Probability Density of an Histogram Python_TLS 1 2,941 Jun-28-2018, 06:19 AM
Last Post: scidam
  Help creating a histogram using an array rubadub 0 2,243 Apr-17-2018, 08:57 PM
Last Post: rubadub
  Histogram help dandatadan 1 2,613 Nov-25-2017, 06:07 AM
Last Post: heiner55
  mcerp: error while plotting a histogram rakhmadiev 2 4,648 Apr-02-2017, 09:08 PM
Last Post: rakhmadiev
  plotting histogram vvv 1 3,372 Mar-10-2017, 11:47 PM
Last Post: zivoni

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020