Color Options for PlanarGraphPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg86884] Color Options for PlanarGraphPlot
- From: BGHEkaya at gmail.com
- Date: Tue, 25 Mar 2008 01:15:49 -0500 (EST)
I am interested in applying color options to PlanarGraphPlot. Under Options[PlanarGraphPlot] there is listed the option ColorOutput -> Automatic. Anyone know how to use this option? I have had no luck. Here is some sample data: sampledata = {{0.854, 0.885}, {1.827, 4.126}, {4.255, 2.872}, {0.888, 4.872}, {4.507, 0.721}, {2.978, 1.998}, {3.507, 4.534}} The best I have been able to do is to apply a color directive to the Line primitive- it works but the approach not very pleasing. PlanarGraphPlot[sampledata, Frame -> True, TextStyle -> {"FontSize" -> 14, "FontColor" -> Blue}] /. Line[x_] -> {Red, Line[x]} Note: using the option BaseStyle->Red makes everything in the plot Red. Of course, one could "undo" some of the BaseStyle by then applying LabelStyle, FrameStyle etc as shown below PlanarGraphPlot[bin, Frame -> True, BaseStyle -> {Red, FontSize -> 14}, LabelStyle -> {Black, FontSize -> 12}, FrameStyle -> Black] Thanks much for any suggestions Brian ps TextStyle is no longer listed as an option but still appears to work