Skip to content

Cannot set stackplot linewidth=0 when writing to pdf #2910

Closed

Description

@kennethdamica

Setting linewidth=0 works fine when using show() or writing to a png, but linewidth seems to default to 1 when writing to a PDF.

Here is a demo of the bug:
https://gist.github.com/kennethdamica/9646582

Activity

  1. WeatherGod commented on Mar 19, 2014

    @WeatherGod
    Member

    The PDF spec does not allow for a zero width line (or even less than 1
    width lines), so many viewers will force a minimum width of one on display.
    We have run into this issue with users specifying linewidths like 0.5 and
    having it display like a 1.0 in PDF viewers. Now, for the case of a
    zero-width line, I would imagine that it shouldn't be drawn at all.

  2. added this to the v1.4.x milestone on Mar 20, 2014
  3. mpharrigan commented on Aug 4, 2014

    @mpharrigan

    Hi,
    I'm having this issue with scatter as well, and it is very frustrating

  4. tacaswell commented on Aug 4, 2014

    @tacaswell
    Member

    For scatter you might be able to get away with setting the markeredgecolor to be the same as the marker face color.

  5. mpharrigan commented on Aug 4, 2014

    @mpharrigan

    Setting edgecolor to 'none' also seems to work

  6. jkseppan commented on Sep 8, 2014

    @jkseppan
    Member

    I think this is fixed by #3485, specifically commit 3a015fa.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions