Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to substitute decimal dot with decimal comma in plot ticks?

160 views
Skip to first unread message

Igor A. Kotelnikov

unread,
May 20, 2013, 5:03:36 AM5/20/13
to
I need to substitute decimal dot by decimal comma in plot ticks by default. How to do that for all plotting functions such as Plot, LogPlot, LogLogPlot e.t.c.?

Bill Rowe

unread,
May 21, 2013, 12:03:14 AM5/21/13
to
On 5/20/13 at 5:04 AM, igor.ko...@gmail.com (Igor A. Kotelnikov)
wrote:

>I need to substitute decimal dot by decimal comma in plot ticks by
>default. How to do that for all plotting functions such as Plot,
>LogPlot, LogLogPlot e.t.c.?

On a global basis this can be done by selecting the Appearance
tab in preferences. In that tab click on Numbers and Formatting,
then there will be menu selector for choosing either a period or
comma as the decimal point character. But do not, selecting
comma here affects everywhere Mathematica displays numbers and
is not just limited to plotting functions.


Alexey Popkov

unread,
May 21, 2013, 4:21:32 AM5/21/13
to
Good point!

One can set preferences locally using Style:

Style[Plot[Sin[x], {x, 0, 6 Pi}], NumberPoint -> ","]

Another option is to use BaseStyle:

Plot[Sin[x], {x, 0, 6 Pi}, BaseStyle -> NumberPoint -> ","]

or TicksStyle:

Plot[Sin[x], {x, 0, 6 Pi}, TicksStyle -> NumberPoint -> ","]

All the above methods allow to display commas in axes ticks instead of periods.

HTH,
Alexey
0 new messages