lines with fixed pixel thickness

Dear users,

I would like to draw lines with fixed pixel thickness, for example 1,
2, or 3 pixels, which remains 1 pixel, even if I zoom in and out the
graph in my interactive application. How can I do this with matplotlib?

I tried to set linewidth to 1 on creating LineCollection, but this
creates too thick lines. If I set it to 0.25 or 0.1, for example, then
some lines on the screen are thin, but some line instances are
simply missing (not visible), depending on the zoom.

Thank you for your help,

János

Janos,

This sounds like some bugs that may have been fixed at some point. Which version of matplotlib are you using, and which backend?

Ben Root

···

On Fri, Jul 29, 2011 at 4:51 PM, Mátyás János <mjanos5@…2015…87…> wrote:

Dear users,

I would like to draw lines with fixed pixel thickness, for example 1,

2, or 3 pixels, which remains 1 pixel, even if I zoom in and out the

graph in my interactive application. How can I do this with matplotlib?

I tried to set linewidth to 1 on creating LineCollection, but this

creates too thick lines. If I set it to 0.25 or 0.1, for example, then

some lines on the screen are thin, but some line instances are

simply missing (not visible), depending on the zoom.

Thank you for your help,

János