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

Added option for an offset for MultipleLocator#21168

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

jondoesntgit
Copy link
Contributor

PR Summary

Allows for an optional kwargoffset to be passed to MultipleLocator. For example, allows ticks to be placed at (.5, 1.5, 2.5, 3.5) withMultipleLocator(base=1, offset=.5).

PR Checklist

I cannot get matplotlib to build locally.

$ python setup.py install[...]In file included from src/py_converters.cpp:3:In file included from src/py_converters.h:17:src/_backend_agg_basic_types.h:7:10: fatal error: 'vector' file not found#include <vector>         ^~~~~~~~1 error generated.error: command 'gcc' failed with exit status 1
$ gcc --versionConfigured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1Apple clang version 12.0.5 (clang-1205.0.22.11)Target: x86_64-apple-darwin20.6.0Thread model: posixInstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin(matplotlib-env)

Once I can build, I can finish the other check marks in your checklist:

  • Has pytest style unit tests (andpytest passes).
  • IsFlake 8 compliant (runflake8 on changed files to check).
  • New features are documented, with examples if plot related.
  • Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).
  • Conforms to Matplotlib style conventions (installflake8-docstrings and runflake8 --docstring-convention=all).
  • New features have an entry indoc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented indoc/api/next_api_changes/ (follow instructions in README.rst there).

Other questions:

  • Which branch should I try to merge into? I'm assuming it's not master. Is 3.5.x the right target?

story645and others added30 commitsAugust 26, 2021 23:06
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
Fixesmatplotlib#20516PGF's `random steps` decoration seems to be the most similar,but does not exactly match the behaviour described in matplotlib's docs.Therefore I repurposed the `randomness` argument as a seed to givecontrol on how the line looks afterwards.
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Switch documented deprecations in mathtext by `__getattr__` deprecations
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
…_outputAPI: rename draw_no_output to draw_without_rendering
Make warning for no-handles legend more explicit.
Remove unused HostAxes._get_legend_handles.
- parse() already normalizes prop=None to prop=FontProperties().- We don't need to explicitly attach a canvas to a plain Figure() before  calling savefig() anymore; FigureCanvasBase is always attached and  handles the dispatching to the correct concrete canvas class.
According to the docs, this function was added in GTK 2.2, so probablywas only needed when we supported GTK2.It also no longer exists in GTK4.
Since these examples don't need to support the very oldest GTK3, I tookthe opportunity to rewrite them using the recommended Application-styledmodel.
timhoffmand others added17 commitsSeptember 22, 2021 13:41
Fix DATA_PARAMETER_PLACEHOLDER interpolation for quiver&contour{,f}.
... and small local cleanups.
- Use finite differences to estimate derivative rather than splines  (which are conceptually much more complicated).- Include a "constant error" case, which shows that the band does have  constant width in that case.- Force the axes aspect to 1 (so that constant width actually appears  constant).- Use np.full() to set up the codes array.
The pixel-sized marker previously use (",") was so small that it lookedmore like a rendering artefact than an actual data point.
DOC: Increase marker size in double_pendulum example.
DOC: Improve curve_error_band example.
DOC: Docstring cleanups around DATA_PARAMETER_PLACEHOLDER.
MNT: Simplify argument parsing in stem().
There is no need to generate a regular grid and statistically choosepoints from that. Instead, we can immediately choose random points.
Co-authored-by: hannah <story645@gmail.com>
Copy link

@github-actionsgithub-actionsbot left a comment

Choose a reason for hiding this comment

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

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a while, please feel free to ping@matplotlib/developers or anyone who has commented on the PR. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join uson gitter for real-time discussion.

For details on testing, writing docs, and our review process, please seethe developer guide

We strive to be a welcoming and open project. Please follow ourCode of Conduct.

@jklymakjklymak marked this pull request as draftOctober 12, 2021 12:55
@jklymak
Copy link
Member

I moved to draft. Let us know if you still cannot build locally. There are quite a few of us using apple and I don't recall any (recent) issues building. Though there was something about clang versus cpp at some point, the solution to which you may be able to find in old issues.

@jondoesntgit
Copy link
ContributorAuthor

jondoesntgit commentedOct 13, 2021 via email

Will try again when I have time (may be several weeks though)
On Tue, Oct 12, 2021 at 5:57 AM Jody Klymak ***@***.***> wrote: I moved to draft. Let us know if you still cannot build locally. There are quite a few of us using apple and I don't recall any (recent) issues building. Though there was something about clang versus cpp at some point, the solution to which you may be able to find in old issues. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#21168 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABZCG2FKAFIYONX6UM6D65LUGQWFLANCNFSM5EWMJMLQ> . Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.

@tacaswell
Copy link
Member

This PR is affected by a re-writing of our history to remove a large number of accidentally committed filessee discourse for details.

To recover this PR it will need be rebased onto the new default branch (main). There are several ways to accomplish this, but we recommend (assuming that you call the matplotlib/matplotlib remote"upstream"

git remote updategit checkout maingit merge --ff-only upstream/maingit checkout YOUR_BRANCHgit rebase --onto=main upstream/old_master# git rebase -i main # if you prefergit push --force-with-lease# assuming you are tracking your branch

If you do not feel comfortable doing this or need any help please reach out to any of the Matplotlib developers. We can either help you with the process or do it for you.

Thank you for your contributions to Matplotlib and sorry for the inconvenience.

@jondoesntgit
Copy link
ContributorAuthor

Thanks@tacaswell@jklymak,

The PR only changes three lines of code (should take 30 seconds for someone who already has a dev install of matplotlib). I can try rebasing, but it will take me a lot longer than 30 seconds to figure everything out.

You can see the three simple changes here:ba6aeff

Jonathan

@rcomer
Copy link
Member

This seems like a useful thing to have, so I have picked it up in#25542. I think we can close this one now. Thank you for your work and for providing clear directions to the relevant commit@jondoesntgit!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@github-actionsgithub-actions[bot]github-actions[bot] left review comments

Assignees
No one assigned
Projects
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

18 participants
@jondoesntgit@jklymak@tacaswell@rcomer@QuLogic@story645@takimata@jyjoshi@timhoffm@dstansby@anntzer@larsoner@hrnciar@Ptrskay3@deep-jkl@fariza@beckja@greglucas

[8]ページ先頭

©2009-2025 Movatter.jp