Menu

#50 Control legend colorbox borders

6.0.0
closed
lbayuk
None
4
Fixed
2013-04-03
2012-12-05
lbayuk
No

See this discussion thread where user Toewe asks for a feature to be able to control the borders around color boxes in the legend.

"Request adding a feature to permit either:
1) the legend colorbox border to be turned on/off
2) set the colorbox border color explicitly"

Related

Bugs: #166
Discussion: Make Legend colorbox border optional
Wiki: 6.0.0-NEWS

Discussion

  • lbayuk

    lbayuk - 2012-12-18

    Adding new method SetLegendColorboxBorders($mode) to control the borders on the legend color boxes. There will be 3 modes: (1) 'textcolor' which is the default (and only mode previously available) uses the SetTextColor() color for the color box borders; (2) 'none' disables the color box borders completely; (3) 'databordercolor' uses the color(s) set with SetDataBorderColors() for the color box borders.

    Also adding new method SetDrawDataBorders() to allow control of the data borders for bars and stackedbars plots. By default, data borders are drawn on unshaded plots, and not drawn on shaded plots. Using the new method you can have unshaded bar charts without borders (or shaded bar charts with borders, although this is less useful).

    (Data border control isn't in the feature request description, but is mentioned in the related discussion thread. You need both if you want to be able to match appearance between the legend color boxes and the bars in the plot.)

     
  • lbayuk

    lbayuk - 2012-12-18
    • assigned_to: lbayuk
    • milestone: None --> 6.0.0
    • priority: 3 --> 4
     
  • lbayuk

    lbayuk - 2012-12-24

    This has been implemented and committed to Subversion (on the Rel6 branch) and is planned for PHPlot-6.0.0. See above for details. Documentation has been updated, and new test scripts are committed.

     
  • lbayuk

    lbayuk - 2012-12-24
    • resolution: None --> Fixed
     
  • lbayuk

    lbayuk - 2013-04-03

    Implemented in 6.0.0

     
  • lbayuk

    lbayuk - 2013-04-03
    • status: open --> closed
     

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.