Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #102391

Re: ts.plot() pandas: No plot!

From Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt>
Newsgroups comp.lang.python
Subject Re: ts.plot() pandas: No plot!
Date 2016-02-01 19:22 +0000
Organization Aioe.org NNTP Server
Message-ID <n8ob8v$15ov$1@gioia.aioe.org> (permalink)
References <n8m9sb$6ss$1@gioia.aioe.org> <mailman.179.1454291031.2338.python-list@python.org> <n8mem0$ba2$1@gioia.aioe.org> <mailman.3.1454336323.3032.python-list@python.org>

Show all headers | View raw


Às 14:18 de 01-02-2016, Jason Swails escreveu:
> On Sun, Jan 31, 2016 at 9:08 PM, Paulo da Silva <
> p_s_d_a_s_i_l_v_a_ns@netcabo.pt> wrote:
> 
>> Às 01:43 de 01-02-2016, Mark Lawrence escreveu:
>>> On 01/02/2016 00:46, Paulo da Silva wrote:
...

> 
> ​What you saw ts.plot() return was the matplotlib artists (the things that
> will be drawn on whatever "canvas" is provided -- either saved to an image
> or drawn to a GUI widget).  So whenever you see this kind of return value,
> you know you need to call the matplotlib.pyplot.show function in order to
> generate a canvas widget (with whatever backend you choose) and draw it.
> 
> If you want to do this kind of interactive plotting (reminiscent, I've
> heard, of Matlab), I would highly recommend checking out IPython.  You can
> use IPython's notebook or qtconsole and embed plots from matplotlib
> directly in the viewer.  For example, try this:
> 
> ipython qtconsole
> 
> This opens up a window, then use the magic command "%matplotlib inline" to
> have all plots sent directly to the ipython console you are typing commands
> in.  I've found that kind of workflow quite convenient for directly
> interacting with data.
Thank you Jason.
This can be very usefull.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

ts.plot() pandas: No plot! Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2016-02-01 00:46 +0000
  Re: ts.plot() pandas: No plot! Chris Angelico <rosuav@gmail.com> - 2016-02-01 12:15 +1100
    Re: ts.plot() pandas: No plot! Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2016-02-01 01:30 +0000
  Re: ts.plot() pandas: No plot! Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-02-01 01:43 +0000
    Re: ts.plot() pandas: No plot! Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2016-02-01 02:08 +0000
      Re: ts.plot() pandas: No plot! Jason Swails <jason.swails@gmail.com> - 2016-02-01 09:18 -0500
        Re: ts.plot() pandas: No plot! Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2016-02-01 19:22 +0000

csiph-web