FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

dpi= doesn't seem to have any effect with MacOS X backend · Issue #113 · matplotlib/matplotlib · GitHub

Repository navigation

dpi= doesn't seem to have any effect with MacOS X backend #113

Closed

Description

I am using the MacOS X backend, and when plotting and saving a file, the dpi= option seems to be ignored:

fig = plt.figure()
ax = fig.add_subplot(1,1,1)
fig.savefig('test.tif', dpi=1000)

produces a file that has dpi=72. Is this normal, or is it a bug? If it is normal that dpi doesn't have any effect, it might be worth adding a warning so the user knowns the dpi option will be ignored.

Activity

  1. mdboom commented on Jun 15, 2011

    Member

    I don't think Michiel de Hoon, the Mac OS X backend developer, has come over to github yet. This is a good bug for him to track down. I'm milestoning it pretty far off since it's not a blocker.

  2. mdboom commented on Aug 20, 2012

    Member

    @pelson: If Michiel can't be reached, do you want to tackle this since you're on OS-X?

  3. pelson commented on Aug 20, 2012

    Member

    :-) I had a look about a month ago and it wasn't immediately obvious. Were you thinking for the 1.2 release? I'm not likely to get a good look at this for around 9 days, which might be acceptable if it is a simple bug fix I suppose. What do you think?

  4. mdboom commented on Aug 20, 2012

    Member

    That's fine. No need to do this now -- if it gets in by the release candidate that would be great, but this is not a top burning issue either.

  5. dmcdougall commented on Sep 7, 2012

    Member

    Having looked at the macosx backend code for the past few days, I know exactly why this is happening. The dpi is never even passed to the graphics context, so it uses some kind of default, probably 72 dpi.

  6. dmcdougall commented on Oct 1, 2012

    Member

    Closing; #1230 fixes this.

  7. added a commit that references this issue on Dec 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL