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

Interactive setting of savefig rcParams (Qt only).#7696

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

Conversation

anntzer
Copy link
Contributor

@anntzeranntzer commentedDec 29, 2016
edited
Loading

An additional window pops after selecting the filename to allow setting
of savefig-related rcParams.

For simplicity and consistency, the "ps.usedistiller" rcParam is now
normalized toNone when not set.

Closes#7352.

@tacaswelltacaswell added this to the2.1 (next point release) milestoneDec 29, 2016
@tacaswell
Copy link
Member

👍 in principle.

Is there a way to work this into the UI other than another modal dialog box? How much can we hack on the filepicker?

@WeatherGod
Copy link
Member

WeatherGod commentedDec 29, 2016 via email

would this second window always pop up? I would find that incrediblyannoying. I would rather have something that would show up with thefile-chooser dialog as advance settings or something.
On Thu, Dec 29, 2016 at 2:07 PM, Thomas A Caswell ***@***.***> wrote: 👍 in principle. Is there a way to work this into the UI other than another modal dialog box? How much can we hack on the filepicker? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#7696 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AARy-AARlpdkPEbBICeWAtEvxXbVm6SWks5rNATegaJpZM4LXRDX> .

@anntzer
Copy link
ContributorAuthor

A quick googling suggests that it is possible to embed a QFileDialog within, say, a QHBoxLayout so that one has a standard filepicker on the left and the options panel on the right. It would require quite a bit more effort to implement though.

Right now the second window always pops up but you can just through it, and it is not different from the behavior of, say, Inkscape when saving to a format where options are available, and it's notthat intrusive either.

@anntzeranntzerforce-pushed theinteractive-qt-savefig-options branch from173a197 to3652e4aCompareDecember 30, 2016 00:02
@anntzer
Copy link
ContributorAuthor

Upon further searching, I now believe that it is not possible to embed a Qt file dialog into a larger widget,unless we choose to not use the native file dialog (see difference athttps://kb.froglogic.com/display/KB/Automating+native+or+Qt+%28file%29+dialogs+in+Qt+applications#AutomatingnativeorQt%28file%29dialogsinQtapplications-DialogsinQtapplications). (The reason being that a native file dialog can be anything and Qt cannot know how to embed it.)

In my opinion, using the native dialog is much preferrable from a UI POV, so I'd rather keep this PR as it is (except for a rebase).

@anntzeranntzerforce-pushed theinteractive-qt-savefig-options branch from3652e4a todbb34b1CompareJune 4, 2017 08:56
@anntzer
Copy link
ContributorAuthor

I put together an alternative implementation, which uses an additional menu for setting the options. The toolbutton menu is easy enough to discover (so that the feature actually gets used...) without being as conspicuous as an additional tool button. Not sure how this would interact with MEP22 though.

screenshot_20170604_143843
screenshot_20170604_143913

@anntzeranntzer mentioned this pull requestJun 4, 2017
@tacaswelltacaswell modified the milestones:2.1 (next point release),2.2 (next next feature release)Aug 29, 2017
@anntzeranntzerforce-pushed theinteractive-qt-savefig-options branch from53f9c7c to09979bdCompareNovember 4, 2017 06:58
@fariza
Copy link
Member

Maybe too late for this, but why don't use a canvas and the widgets that we have, this way, we can reuse for other backends

@anntzer
Copy link
ContributorAuthor

I think a native window is justmuch nicer. See also#8683.

@fariza
Copy link
Member

Yes I agree that native widgets are much nicer.
The problem is:this just makes backend maintenance a lot harder.
This is the main point of MEP22 and MEP27

@dopplershift
Copy link
Contributor

I'm not a fan of adding more Qt-only features, unless we decide that's really the direction the project wants to go in.

@anntzeranntzer mentioned this pull requestFeb 17, 2018
6 tasks
@anntzeranntzerforce-pushed theinteractive-qt-savefig-options branch 2 times, most recently fromf863e69 to17d5cacCompareFebruary 26, 2018 22:48
An additional window pops after selecting the filename to allow settingof savefig-related rcParams.For simplicity and consistency, the "ps.usedistiller" rcParam is nownormalized to `None` when not set.
@anntzeranntzerforce-pushed theinteractive-qt-savefig-options branch from17d5cac to2129eb0CompareFebruary 27, 2018 00:55
@jklymak
Copy link
Member

@anntzer I'll close this as not likely to move forward, but feel free to reopen if you want to re-pursue

@anntzeranntzer deleted the interactive-qt-savefig-options branchJuly 16, 2020 10:02
@anntzeranntzer mentioned this pull requestJan 26, 2022
6 tasks
@story645story645 removed this from thefuture releases milestoneOct 6, 2022
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
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

expose savefig.transparent / savefig.dpi in the UI
7 participants
@anntzer@tacaswell@WeatherGod@fariza@dopplershift@jklymak@story645

[8]ページ先頭

©2009-2025 Movatter.jp