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

FIX: resizing a figure in webagg#4035

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
tacaswell merged 1 commit intomatplotlib:masterfromeyurtsev:fix_webagg_resize_02
Jan 26, 2015

Conversation

eyurtsev
Copy link
Contributor

Resizing in webagg doesn't work because the figure grabs mouse events (#3338).

This is an iteration over a previous pull request (#3341), including the minimal changes required to fix the problem.

I don't think that the debouncing is necessary anymore, so I removed it. I tested this with both a static plot and animations.

This addresses 90% of the problem.

Resizing issues will reappear if working with multiple figures on the same page.
Refactoring would be necessary probably to introduce some "resizing manager" that will prevent mouse events from being passed to all figures while any figure is being resized.

@blink1073
Copy link
Member

Tested, LGTM, 👍

function mouse_event_fn(event) {
return fig.mouse_event(event, event['data']);
if (pass_mouse_events)
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Style nit: we haven't been using braces if there is only one statement.

@eyurtsev
Copy link
ContributorAuthor

@blink1073 how do I submit a revision to the code?

If I remove the brackets and push the new code to my fork on github will the pull request here get automatically synhronized?

@blink1073
Copy link
Member

Yes, you can keep pushing changes to yourfix_webagg_resize_02 branch.

@eyurtsev
Copy link
ContributorAuthor

Curly braces have been terminated.

But an accidental commit was added!

@eyurtsev
Copy link
ContributorAuthor

Well, just did my first rebase. And forced a push into github repository. There should be only a single commit. :)

@blink1073
Copy link
Member

Looks good@eyurtsev. You didn't necessarily have to rebase for just one extra commit.

@tacaswelltacaswell added this to thev1.4.3 milestoneJan 26, 2015
@pelson
Copy link
Member

👍 LGTM

tacaswell added a commit that referenced this pull requestJan 26, 2015
@tacaswelltacaswell merged commit61fd742 intomatplotlib:masterJan 26, 2015
@tacaswell
Copy link
Member

also, improved functionality with a net removal of code!

tacaswell added a commit that referenced this pull requestJan 26, 2015
@tacaswell
Copy link
Member

back ported as7468be2

@eyurtsev
Copy link
ContributorAuthor

@blink1073 it was time to learn :)

@eyurtseveyurtsev deleted the fix_webagg_resize_02 branchJanuary 28, 2015 01:52
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
v1.4.3
Development

Successfully merging this pull request may close these issues.

4 participants
@eyurtsev@blink1073@pelson@tacaswell

[8]ページ先頭

©2009-2025 Movatter.jp