Skip to main content
20 events
when toggle format what by license comment
Feb 14, 2017 at 11:43 history edited Mr.Wizard
edited tags
Jun 18, 2012 at 23:02 vote accept Mike Honeychurch
Jun 18, 2012 at 11:39 history edited Mike Honeychurch CC BY-SA 3.0
edited title
Jun 18, 2012 at 10:36 history tweeted twitter.com/#!/StackMma/status/214667809404354561
Jun 18, 2012 at 10:17 answer added Chris Degnen timeline score: 4
Jun 18, 2012 at 9:35 comment added Heike @MikeHoneychurch I've added my comment as an answer
Jun 18, 2012 at 9:25 answer added Heike timeline score: 15
Jun 18, 2012 at 8:52 comment added Mike Honeychurch @Heike can you put that in an answer? It may not be pretty but is still easier than wrapping Style around all frame labels.
Jun 18, 2012 at 8:49 comment added Heike Not pretty, but you can do something like Plot[2 Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> {x, y}, PlotLabel -> 2 Sin[x], FrameStyle -> Directive[Green, FontColor -> Orange], FrameTicksStyle -> Directive[FontColor -> Black], LabelStyle -> Orange] to have different styles for the frame labels, frame + ticks, and tick marks.
Jun 18, 2012 at 8:36 history edited Mike Honeychurch CC BY-SA 3.0
added 72 characters in body
Jun 18, 2012 at 8:27 comment added Mike Honeychurch To me this seems like wrong behaviour. Think about it: You can separate styling for ticks and labels but not for frames and labels. Why should developers have expected users to want labels to be styled the same as the frame without the flexibility of altering that? Unless they just decided that if users want to style labels then they should explicitly wrap Style around the labels???
Jun 18, 2012 at 8:23 comment added J. M.'s missing motivation Hmm, yes. The docs certainly slipped there. I wonder...
Jun 18, 2012 at 8:21 comment added Mike Honeychurch Not according to the documentation: "FrameStyle affects frame, frame ticks, and frame tick labels". No mention of frame labels. While these get subsumed in the FrameStyle in the absence of an explicit LabelStyle, I cannot see anything in the documentation that explains why the frame labels are changing. The effect on the frame labels should be the same as when you introduce FrameTickStyleing (IMO).
Jun 18, 2012 at 8:07 comment added J. M.'s missing motivation My understanding is that FrameTicksStyle affects both ticks and tick labels. Thus, in the case of Plot[2 Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> {x, y}, PlotLabel -> 2 Sin[x], FrameTicksStyle -> Green, FrameStyle -> Red, LabelStyle -> Brown], the ticks+tick labels are green, the frame and frame labels are red, and the plot label is brown.
Jun 18, 2012 at 8:04 comment added Mike Honeychurch Let me re: word my first comment in this thread. My understanding of higher priority is that e.g. the FrameTickStyle will style the ticks regardless of the setting for LabelStyle but the labels won't be converted to whatever the FrameTickStyle is. While this is what happens with FrameTickStyle it is not what happens with FrameStyle.
Jun 18, 2012 at 7:59 comment added Mike Honeychurch How are you defining higher priority? FrameTicksStyle supposed higher priority leaves labels unchanged whereas FrameStyle, also higher priority but it changes labels. If they are defined to have the same priority in relation to labels shouldn't they act the same?
Jun 18, 2012 at 7:56 comment added J. M.'s missing motivation Hmm, when I tried out Plot[2 Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> {x, y}, PlotLabel -> 2 Sin[x], FrameTicksStyle -> Green, LabelStyle -> Orange], the tick labels came out green, and the other labels became orange, as expected.
Jun 18, 2012 at 7:52 comment added Mike Honeychurch @J.M. ...and yet despite stating that both FrameTicksStyle and FrameStyle have a higher priority than LabelStyle, the explicit examples show that LabelStyle has a higher priority than FrameTicksStyle. I therefore wouldn't consider this part of the documentation to be enlightening :)
Jun 18, 2012 at 7:40 comment added J. M.'s missing motivation From docs: "FrameStyle can be used together with LabelStyle and has higher priority", and "FrameTicksStyle can be used with LabelStyle and has higher priority", and "FrameTicksStyle can be used with FrameStyle and has higher priority". The "Properties and Relations" sections of the docs are quite enlightening in this regard.
Jun 18, 2012 at 7:36 history asked Mike Honeychurch CC BY-SA 3.0