Menu

#93 Wide/Custom dashed lines don't work well

open
nobody
None
5
2012-09-07
2006-11-29
lbayuk
No

Dashed lines, other than the default pattern and unit width, don't work very well. Wider dashed lines, whether default style or customized with SetDefaultDashedStyle(), do not look right at all. Custom pattern unit width lines usually look wrong too, for example SetDefaultDashedStyle('12-4-4-4-4-4') doesn't produce uniform dashes and dots.

Note: This seems to be a problem with GD and there is likely nothing PHPlot can do about it. These have been duplicated in PHP+GD without PHPlot:
(1) Wide dashed lines are simply drawn wrong.
(2) GD does not continue dashed patterns at vertices.

Related

Wiki: 6.0.0-README
Wiki: 6.1.0-README
Wiki: 6.2.0-README

Discussion

  • lbayuk

    lbayuk - 2006-11-30

    Logged In: YES
    user_id=132326
    Originator: YES

    Correction: (2) above is wrong. GD does correctly continue dashed patterns at vertices. The problem is that PHPlot does not draw the line segments that make up a line in order, so GD cannot continue the patterns. And it calls imagesetstyle in between each segment, which resets the dashed pattern pointer. So this part of the problem is in fact in PHPlot, and does not look to be readily fixed.

     
  • lbayuk

    lbayuk - 2007-12-02

    Logged In: YES
    user_id=132326
    Originator: YES

    PHP bug report for item 1, wide dashed lines drawn wrong: http://bugs.php.net/43475

     

Log in to post a comment.

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.