Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

How can I change the number point from . to , in CustomTicks ? The Mathematica built-in function

NumberForm[Plot[…],NumberPoint -> ","]

doesn't work any more, if you use e.g. LinTicks.

share|improve this question
2  
Hi, you can manage Ticks in ways that are described here or in the related topics that are linked in this question. –  Kuba Oct 5 '13 at 17:15
add comment

2 Answers

Update

Here is a better way. FixedPointForm is used to format the tick numbers. Its default options include NumberPoint -> ".":

Options[FixedPointForm]
(* {NumberSigns -> {"-", ""}, NumberPoint -> ".", SignPadding -> False, Debug -> False} *)

Reset the NumberPoint option as desired:

SetOptions[FixedPointForm, NumberPoint -> ","];
Plot[E^x Sin[10 x], {x, -1, 1}, Ticks -> LinTicks]

Original

The question, CustomTicks and small ranges, shows one can pass a formatting function to LinTicks:

Plot[E^x Sin[10 x], {x, -1, 1}, 
 Ticks ->
   (LinTicks[##, TickLabelFunction -> (NumberForm[#, {2, 1}, NumberPoint -> ","] &)] &)]

Mathematica graphics

[A weakness in the original solution is having to set the number form explicitly instead of automatically.]

share|improve this answer
add comment

Unless the number point is explicit in this tick package can't you just use Style to override the global setting? e.g

enter image description here

and

Style[
 Plot[E^x Sin[10 x], {x, -1, 1}],
 NumberPoint -> "CC"]

enter image description here

share|improve this answer
1  
Nice, +1, I didn't know that NumberPoint is option for Style. But since it is you can also use BaseStyle -> {NumberPoint -> ","} –  Kuba Oct 6 '13 at 20:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.