Jump to content
Software FX Community

Turning off "Minor" Grid Lines for Log Log plot


MikeK

Recommended Posts

I have a log log plot and I only want lines displayed at the labels location (ex. 10^0, 10^1, 10^2, 10^3, etc.).  I have the visibility of the Axis.Grids.Minor set to collapsed.  It appears that the lines that are showing up between my labels are considered major grid lines because if I set Axis.Grids.Major.Stroke to a green solid color brush it changes all of the grid lines for that axis to green.

 How do I set the grid lines for a log log plot so I only see the lines at the label?

 Thanks,

 Michael

 

Link to comment
Share on other sites

We have historically always painted these "intermediate" grid lines (and yes they are considered major gridlines) because this is the grid layout that people immediately relate with a logarithmic axis.

It does look a little crowded so any build marked 3888 or later will support an AxisStyle to turn them off, e.g.

  chart1.AxisY.AxisStyle |= AxisStyles.HideIntermediateLogLines; 

This build should be available in a day or two. 

JuanC

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...