Skip to content

error bars #3774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jsudheer opened this issue Jun 6, 2013 · 8 comments
Closed

error bars #3774

jsudheer opened this issue Jun 6, 2013 · 8 comments

Comments

@jsudheer
Copy link

jsudheer commented Jun 6, 2013

Dear developers,
Is there a way to add error bar to a ts.plot object? for example I have a time series and I need to plot the standard deviation along with the data how do I do that ?
Thanks
Sudheer

@jreback
Copy link
Contributor

jreback commented Jun 6, 2013

why don't you make a frame and just plot multiple series, see: http://pandas.pydata.org/pandas-docs/dev/visualization.html

@cpcloud
Copy link
Member

cpcloud commented Jun 6, 2013

there's also errorbar in matplotlib...

@jsudheer
Copy link
Author

jsudheer commented Jun 6, 2013

Thank you,

Yes, I have seen that, but that won't allow to have the time axis like
month year style.
with best regards,
Sudheer

On Thu, Jun 6, 2013 at 8:35 PM, Phillip Cloud [email protected]:

there's also errorbar in matplotlib...


Reply to this email directly or view it on GitHubhttps://github.com//issues/3774#issuecomment-19051453
.

with best regards

Sudheer


Dr. Sudheer Joseph

Scientist

INDIAN NATIONAL CENTRE FOR OCEAN INFORMATION SERVICES (INCOIS)
MINISTRY OF EARTH SCIENCES, GOVERNMENT OF INDIA
"OCEAN VALLEY" PRAGATHI NAGAR (BO)
OPP.JNTU, NIZAMPET SO
Andhra Pradesh, India. PIN- 500 090.
TEl:+91-40-23044600(R),Tel:+91-9440832534(Mobile)
Tel:+91-40-23886047(O),Fax:+91-40-23892910(O)
E-mail: [email protected]; [email protected].
Web- http://oppamthadathil.tripod.com
--------------* ---------------
"The ultimate measure of a man is
not where he stands in moments of
comfort and convenience, but where
he stands at times of challenge and
controversy."
Martin Luther King, Jr.
"What we have done for ourselves alone dies with us.
What we have done for others and the world remains and is immortal."

  • Albert Pines

@cpcloud
Copy link
Member

cpcloud commented Jun 7, 2013

@jreback i think a pd.plotting.errorbar() for frames/series line/bar plots might be nice, unless there's a better way to do it.

you can plot multiple series but u end up having to use the mpl api, which imho is partly why i use pandas...to avoid that beast as much as possible (even though it's power for producing publication graphics is kind of ridiculous).

and what if u want to add a fill for example...again maybe this is already there, i haven't used plotting stuff in a while...

@jreback
Copy link
Contributor

jreback commented Jun 7, 2013

maybe

s = Series

s.plot(error_bar = [-1,1])

equiv to:

df = DataFrame(dict(s = s, top = s.std(), bot = -s.std())).plot()

bottom seems the right way to do this....

@cpcloud
Copy link
Member

cpcloud commented Jun 7, 2013

ok i will make an issue

@cpcloud
Copy link
Member

cpcloud commented Jun 7, 2013

closed since there's now #3796.

@cpcloud cpcloud closed this as completed Jun 7, 2013
@jreback
Copy link
Contributor

jreback commented Jun 7, 2013

see #3796

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants