Skip to main content
added 8 characters in body
Source Link
Alexey Popkov
  • 62.5k
  • 7
  • 163
  • 405
fixLogPlots[gr_] := gr /. f : (Ticks | FrameTicks -> _) :> (f /. _Thickness :> (## &[])) 
fixLogPlots[gr_] := gr /. f : (FrameTicks -> _) :> (f /. _Thickness :> (## &[])) 
fixLogPlots[gr_] := gr /. f : (Ticks | FrameTicks -> _) :> (f /. _Thickness :> (## &[])) 
added 176 characters in body
Source Link
Alexey Popkov
  • 62.5k
  • 7
  • 163
  • 405

Here is universal fix for version 10 which works for all types of log plots:

fixLogPlots[gr_] := gr /. f : (Charting`ScaledTicks | Charting`ScaledFrameTicks)[{Log, Exp}] :> (Part[#, ;; , ;; 3] &@*f) 

UPDATE 2

And here is universal fix for versions 8 and 9:

fixLogPlots[gr_] := gr /. f : (FrameTicks -> _) :> (f /. _Thickness :> (## &[])) 

Here is universal fix which works for all types of log plots:

fixLogPlots[gr_] := gr /. f : (Charting`ScaledTicks | Charting`ScaledFrameTicks)[{Log, Exp}] :> (Part[#, ;; , ;; 3] &@*f) 

Here is universal fix for version 10 which works for all types of log plots:

fixLogPlots[gr_] := gr /. f : (Charting`ScaledTicks | Charting`ScaledFrameTicks)[{Log, Exp}] :> (Part[#, ;; , ;; 3] &@*f) 

UPDATE 2

And here is universal fix for versions 8 and 9:

fixLogPlots[gr_] := gr /. f : (FrameTicks -> _) :> (f /. _Thickness :> (## &[])) 
added 79 characters in body
Source Link
Alexey Popkov
  • 62.5k
  • 7
  • 163
  • 405

Reproduced in v.10.0.0 under Win7 x64. In v.8versions 8.0.4 and 9.0.1 the behavior differs in details but the bug is also present: only major logarithmic frame ticks change their thickness, but not minor ticks.

So this behavior reflects inconsistent implementation of Charting`ScaledTicks and Charting`ScaledFrameTicks which should NOT include styling into the tick specifications they generate. It may be calledis a bug.

Reproduced in v.10.0.0 under Win7 x64. In v.8.0.4 only major logarithmic frame ticks change their thickness, but not minor ticks.

So this behavior reflects inconsistent implementation of Charting`ScaledTicks and Charting`ScaledFrameTicks which should NOT include styling into the tick specifications they generate. It may be called a bug.

Reproduced in v.10.0.0 under Win7 x64. In versions 8.0.4 and 9.0.1 the behavior differs in details but the bug is also present: only major logarithmic frame ticks change their thickness, but not minor ticks.

So this behavior reflects inconsistent implementation of Charting`ScaledTicks and Charting`ScaledFrameTicks which should NOT include styling into the tick specifications they generate. It is a bug.

improved the code
Source Link
Alexey Popkov
  • 62.5k
  • 7
  • 163
  • 405
Loading
added 241 characters in body
Source Link
Alexey Popkov
  • 62.5k
  • 7
  • 163
  • 405
Loading
added 539 characters in body
Source Link
Alexey Popkov
  • 62.5k
  • 7
  • 163
  • 405
Loading
Source Link
Alexey Popkov
  • 62.5k
  • 7
  • 163
  • 405
Loading