[Matplotlib-devel] mpl-3.4 vs. mplcairo?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Matplotlib-devel] mpl-3.4 vs. mplcairo?

Neal Becker
Just updated out-of-date python modules including mpl.  Now if I try a
simple plot I get:
--------------
In [2]: Traceback (most recent call last):
  File "/home/nbecker/.local/lib/python3.9/site-packages/mplcairo/qt.py",
line 12, in paintEvent
    if self._update_dpi():
AttributeError: 'FigureCanvasQTCairo' object has no attribute '_update_dpi'
-----------

if using backend: module://mplcairo.qt, which is my default.
Removing this from matplotlibrc the plot works fine.

fedora 33
python 3.9.2
mplcairo                          0.3.post38+g3bcf15c
matplotlib                        3.4.0
PyQt5                             5.15.4
PyQt5-Qt5                         5.15.2

--
Those who don't understand recursion are doomed to repeat it
_______________________________________________
Matplotlib-devel mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-devel
Reply | Threaded
Open this post in threaded view
|

Re: mpl-3.4 vs. mplcairo?

Antony Lee-3
I need to make a new release for mplcairo.  Will try to get it out in the coming days...
Antony

On Mon, Mar 29, 2021 at 2:11 PM Neal Becker <[hidden email]> wrote:
Just updated out-of-date python modules including mpl.  Now if I try a
simple plot I get:
--------------
In [2]: Traceback (most recent call last):
  File "/home/nbecker/.local/lib/python3.9/site-packages/mplcairo/qt.py",
line 12, in paintEvent
    if self._update_dpi():
AttributeError: 'FigureCanvasQTCairo' object has no attribute '_update_dpi'
-----------

if using backend: module://mplcairo.qt, which is my default.
Removing this from matplotlibrc the plot works fine.

fedora 33
python 3.9.2
mplcairo                          0.3.post38+g3bcf15c
matplotlib                        3.4.0
PyQt5                             5.15.4
PyQt5-Qt5                         5.15.2

--
Those who don't understand recursion are doomed to repeat it
_______________________________________________
Matplotlib-devel mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-devel

_______________________________________________
Matplotlib-devel mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-devel
Reply | Threaded
Open this post in threaded view
|

Re: mpl-3.4 vs. mplcairo?

Neal Becker
Thanks, looking forward to it!

On Mon, Mar 29, 2021 at 10:38 AM Antony Lee
<[hidden email]> wrote:

>
> I need to make a new release for mplcairo.  Will try to get it out in the coming days...
> Antony
>
> On Mon, Mar 29, 2021 at 2:11 PM Neal Becker <[hidden email]> wrote:
>>
>> Just updated out-of-date python modules including mpl.  Now if I try a
>> simple plot I get:
>> --------------
>> In [2]: Traceback (most recent call last):
>>   File "/home/nbecker/.local/lib/python3.9/site-packages/mplcairo/qt.py",
>> line 12, in paintEvent
>>     if self._update_dpi():
>> AttributeError: 'FigureCanvasQTCairo' object has no attribute '_update_dpi'
>> -----------
>>
>> if using backend: module://mplcairo.qt, which is my default.
>> Removing this from matplotlibrc the plot works fine.
>>
>> fedora 33
>> python 3.9.2
>> mplcairo                          0.3.post38+g3bcf15c
>> matplotlib                        3.4.0
>> PyQt5                             5.15.4
>> PyQt5-Qt5                         5.15.2
>>
>> --
>> Those who don't understand recursion are doomed to repeat it
>> _______________________________________________
>> Matplotlib-devel mailing list
>> [hidden email]
>> https://mail.python.org/mailman/listinfo/matplotlib-devel



--
Those who don't understand recursion are doomed to repeat it
_______________________________________________
Matplotlib-devel mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-devel
Reply | Threaded
Open this post in threaded view
|

Re: mpl-3.4 vs. mplcairo?

Antony Lee-3
mplcairo 0.4 is out now, and should fix the problem.
Antony

On Mon, Mar 29, 2021 at 4:59 PM Neal Becker <[hidden email]> wrote:
Thanks, looking forward to it!

On Mon, Mar 29, 2021 at 10:38 AM Antony Lee
<[hidden email]> wrote:
>
> I need to make a new release for mplcairo.  Will try to get it out in the coming days...
> Antony
>
> On Mon, Mar 29, 2021 at 2:11 PM Neal Becker <[hidden email]> wrote:
>>
>> Just updated out-of-date python modules including mpl.  Now if I try a
>> simple plot I get:
>> --------------
>> In [2]: Traceback (most recent call last):
>>   File "/home/nbecker/.local/lib/python3.9/site-packages/mplcairo/qt.py",
>> line 12, in paintEvent
>>     if self._update_dpi():
>> AttributeError: 'FigureCanvasQTCairo' object has no attribute '_update_dpi'
>> -----------
>>
>> if using backend: module://mplcairo.qt, which is my default.
>> Removing this from matplotlibrc the plot works fine.
>>
>> fedora 33
>> python 3.9.2
>> mplcairo                          0.3.post38+g3bcf15c
>> matplotlib                        3.4.0
>> PyQt5                             5.15.4
>> PyQt5-Qt5                         5.15.2
>>
>> --
>> Those who don't understand recursion are doomed to repeat it
>> _______________________________________________
>> Matplotlib-devel mailing list
>> [hidden email]
>> https://mail.python.org/mailman/listinfo/matplotlib-devel



--
Those who don't understand recursion are doomed to repeat it

_______________________________________________
Matplotlib-devel mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-devel