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

improvements to qt edit widget#4411

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
efiring merged 2 commits intomatplotlib:masterfromtacaswell:fix_qt4_widget
May 13, 2015

Conversation

tacaswell
Copy link
Member

If there are lines on the Axes, but they are all labeled
'nolegend', treat as if there are no lines on the Axes.

Closes#4323

Convert all colors to hex before passing to the form layout

Closes#4410

If there are lines on the Axes, but they are all labeled'_nolegend_', treat as if there are no lines on the Axes.Closesmatplotlib#4323
@tacaswelltacaswell added this to thenext point release milestoneMay 6, 2015
@tacaswell
Copy link
MemberAuthor

This should probably be back-ported

Convert all line colors to hex before passing into the form layout.Closesmatplotlib#4410
@tacaswelltacaswell changed the titleFIX : do not pass empty curve list throughimprovements to qt edit widgetMay 6, 2015
@anntzer
Copy link
Contributor

I feel like one should rather fixFormTabWidget.__init__ to support emptydata lists (and do nothing in that case) andto_qcolor (at least let it throw an exception if it can't convert the color, mapping everything to black is clearly wrong).

@tacaswell
Copy link
MemberAuthor

The color stuff is a bit excessive, but the reason it is the way it is is thatto_qcolor is used as part of the processing of converting user input -> color in the gui which comes back as a string. The commit message on the last time thecolor = str(color) line was touched references dealing withQString issues which is a nasty bit of API change over in pyqt. Having this default to black isn't a bad course of action if the user types 'aardvark' into the color box and it looks like we are relying on Qt default behavior here to get that, not ours. Making sure we pass the initial color in in an unambiguous string like way is relatively clean and the minimal change to fix this problem. I think any other way would be a change in behavior and require a good bit of re-working on the Qt side of this.

Same withFormTabWidget, ensuring mpl passes in valid input is simpler than modifying the Qt code.

formlayout.py is an external project that we bundle so I am biased against modifying it more than absolutely needed.

@anntzer If you would like to propose more invasive changes PRs are always welcome, but I think that these changes fix the problem in a relatively clean way.

Roughly related to#4304 which also involves this widget and colors.

efiring added a commit that referenced this pull requestMay 13, 2015
@efiringefiring merged commit03eccd0 intomatplotlib:masterMay 13, 2015
@tacaswelltacaswell deleted the fix_qt4_widget branchMay 13, 2015 18:22
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
v1.5.0
Development

Successfully merging this pull request may close these issues.

Curves, line & axis parameter editor has poor support for colors seaborn.tsplot and matplotlib's "Curve lines and axes parameters" editor
3 participants
@tacaswell@anntzer@efiring

[8]ページ先頭

©2009-2025 Movatter.jp