SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Mátyás J. <mj...@gm...> - 2011年07月29日 22:07:23
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
From: Benjamin R. <ben...@ou...> - 2011年08月01日 15:27:23
On Fri, Jul 29, 2011 at 4:51 PM, Mátyás János <mj...@gm...> 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
>
>
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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /