RE: Setting GridLines style for major and minor grid lines
- To: mathgroup at smc.vnet.net
- Subject: [mg100571] RE: [mg100539] Setting GridLines style for major and minor grid lines
- From: "David Park" <djmpark at comcast.net>
- Date: Mon, 8 Jun 2009 02:07:36 -0400 (EDT)
- References: <2797256.1244366499024.JavaMail.root@n11>
I don't know if having two different styles for major and minor grid lines is a good idea because it will tend to confuse the viewer. Better is to have fewer grid lines and to make them as light as possible, what Edward Tufte calls "the minimum effective difference". Here is a LogLog example from GridLines help where, just for illustration, I use a full set of grid lines vertically, but a restricted set horizontally. LogLogPlot[1/x, {x, 1, 10000}, Frame -> True, GridLines -> {Table[10^n, {n, 0, 4}], Automatic}, GridLinesStyle -> GrayLevel[.85]] The Presentations package has a CustomGridLines (and also a CustomTicks) command and a different paradigm that makes it easier to construct custom graphics with elements from different plot types. David Park djmpark at comcast.net http://home.comcast.net/~djmpark/ From: dg [mailto:davide.guarisco at gmail.com] I am drawing a log plot. Because it spans many decades, the grid lines look horrible in the default setting (they completely overwhelm the plot). What I want is to only draw the grid lines for the major grid (for the y axis). I was looking at a way to specify the style of the gridlines separately for major and minor grid WITHOUT having to generate all the gridline locations myself. Unfortunately is seems that in Mathematica 7 GridLinesStyle->{xstyle,ystyle} is the only available option. It would be SOOOO MUCH BETTER if Mathematica would have: GridLinesStyle->{{xMajorStyle,xMinorStyle},{yMajorStyle,yMinorStyle}} Any other easy way to achieve this? I find that Mathematica still has many irritating limitations with plots. This is only one I have run into. TIA