Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[WIP] Deprecate gtk, gdk and wx backends and remove Cocoaagg on 2.x#6582

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

jenshnielsen
Copy link
Member

I still need to add an api_change note and update the documentation to reflect the deprecation.

The inheritance between the various Gtk backends is a bit complicated but this solution correctly prints the deprecation warning when using the Gtk and Gdk backends but not the GtkAgg og GtkCairo backends.

I also removed some references to the long since removed fltk and emf backends

Fixes#6541
#6574 targeting 2.x as originally intended.

@OceanWolf
Copy link
Member

What do you think of using this instead in__init__

ifself.__class__==FigureCanvasX:warn.deprecated(...)

It feels safer and cleaner to me, checking as early as possible and ensures we warn only if someone trys to create an instance of this base class.

@jenshnielsen
Copy link
MemberAuthor

Fine with me. I will get back to this as soon as I have a chance

@OceanWolf
Copy link
Member

Cool, do we still want this in for 2.0?

@jenshnielsen
Copy link
MemberAuthor

Yes thats my intention. We either need to do this or fix the GDK/GTK backend which is broken. Like this we will at least warn users about this and encurage them to use GTKAgg instead.

@OceanWolfOceanWolf added this to the2.0 (style change major release) milestoneJun 15, 2016
@OceanWolf
Copy link
Member

I don't know enough about the graphics plotting to know why someone would not want to use Agg or Cairo.

@jenshnielsen
Copy link
MemberAuthor

I don't think many users will but it you have to select a GTK backend and don't read the docs carefully it's very easy to select the GTK backend over the GTKAgg since it's just

import matplotlibmatploltlib.use('GTK')

@OceanWolf
Copy link
Member

Sure, I have done that, I didn't realise that a difference existed between Gtk and GtkAgg. Gtk feels like it should alias GtkAgg, i.e. due to most systems not installing cairo by default. As a simple user I wouldn't want to mess around figuring out whether I should use Agg or Cairo. Maybe something for a Getting Started guide that puts it real simple why users would choose one over the other.

@tacaswelltacaswell merged commit6a798f0 intomatplotlib:v2.xJun 29, 2016
@jenshnielsenjenshnielsen deleted the deprecategtkwxcocoaagg branchJune 29, 2016 07:03
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v2.0.0
Development

Successfully merging this pull request may close these issues.

3 participants
@jenshnielsen@OceanWolf@tacaswell

[8]ページ先頭

©2009-2025 Movatter.jp