? Shouldn't separating ones are
>>>>>>> better?
>>>>>>>
>>>>>>> After I get matplotlib work, I have a new problem.
>>>>>>>
>>>>>>> This code snippet works
>>>>>>> %python
gt;>>>>> plt.plot(x, x**2)
>>>>>> z.show(plt, width='300px')
>>>>>> plt.close()
>>>>>>
>>>>>> But if I change x value to x= np.linspace(-2, 2, 1000), as it it used
>>>>>> in the example, I got
>
gt;>>>>
>>>>> []
>>>>>
>>>>> Traceback (most recent call last):
>>>>> File "", line 1, in
>>>>> File "", line 23, in show
>>>>> File "", line 69, in show_matplotlib
gt;> []
>>>>>
>>>>> Traceback (most recent call last):
>>>>> File "", line 1, in
>>>>> File "", line 23, in show
>>>>> File "", line 69, in show_matplotlib
>>>>> UnicodeEncodeError
t;> position 17262: ordinal not in range(128)
>>>>
>>>> I did some testing, and I found if any of the value passed to plot()
>>>> contains negative numbers, I will get this error...very odd.
>>>>
>>>>
>>>>
>>>> On
>>>
>>>> And
>>>> matplotlib.use('Agg')
>>>>
>>>> Would only work before matplotlib is first used so you would need to
>>>> restart the interpreter. From error stack below it looks like something
>>>> might be setting the
6 at 8:50 AM Felix Cheung <felixcheun...@hotmail.com>
>> wrote:
>>
>>> And
>>> matplotlib.use('Agg')
>>>
>>> Would only work before matplotlib is first used so you would need to
>>> restart the interpreter. From error stack below it looks like
only work before matplotlib is first used so you would need to
>> restart the interpreter. From error stack below it looks like something
>> might be setting the default backend in matplotlib to TkAgg though.
>>
>> Are you using the Python interpreter or PySpark interpreter?
ke something
> might be setting the default backend in matplotlib to TkAgg though.
>
> Are you using the Python interpreter or PySpark interpreter? Also how you
> are calling matplotlib like Moon asks?
>
> _
> From: moon soo Lee <m...@apache.org>
>
? Also how you are
calling matplotlib like Moon asks?
_
From: moon soo Lee <m...@apache.org<mailto:m...@apache.org>>
Sent: Tuesday, September 13, 2016 2:34 PM
Subject: Re: Matplotlib uses tkinter instead of Agg
To: <users@zeppelin.apache.o
Hi,
Thanks for sharing the problem.
Could you share which version of Zeppelin are you using and how did you try
matplotlib inside of Zeppelin? Are you trying matplotlib with z.show() ?
Thanks,
moon
On Tue, Sep 13, 2016 at 1:56 AM Xi Shen wrote:
> Hi,
>
> I want to build
11 matches
Mail list logo