ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 08 Nov 2020 06:53:37 +0100Plotting in base n?https://ask.sagemath.org/question/53815/plotting-in-base-n/In sagemath is there a way to represent plots in bases other then base10? If at all possible being able to plot from base2 to base36.Sat, 10 Oct 2020 15:20:18 +0200https://ask.sagemath.org/question/53815/plotting-in-base-n/Comment by nooniensoong97 for <p>In sagemath is there a way to represent plots in bases other then base10? If at all possible being able to plot from base2 to base36.</p>
https://ask.sagemath.org/question/53815/plotting-in-base-n/?comment=53862#post-id-53862So the program isn't designed to actually do any processing in other bases, and the only way is to format the plot to represent the said data as the intended base.Mon, 12 Oct 2020 14:11:33 +0200https://ask.sagemath.org/question/53815/plotting-in-base-n/?comment=53862#post-id-53862Comment by slelievre for <p>In sagemath is there a way to represent plots in bases other then base10? If at all possible being able to plot from base2 to base36.</p>
https://ask.sagemath.org/question/53815/plotting-in-base-n/?comment=53822#post-id-53822Please provide an example of plot you would like to do.Sat, 10 Oct 2020 18:36:11 +0200https://ask.sagemath.org/question/53815/plotting-in-base-n/?comment=53822#post-id-53822Comment by nooniensoong97 for <p>In sagemath is there a way to represent plots in bases other then base10? If at all possible being able to plot from base2 to base36.</p>
https://ask.sagemath.org/question/53815/plotting-in-base-n/?comment=53824#post-id-53824Say I would like to use list_plot for a list of prime numbers in a base other then base10.Sun, 11 Oct 2020 00:16:07 +0200https://ask.sagemath.org/question/53815/plotting-in-base-n/?comment=53824#post-id-53824Comment by slelievre for <p>In sagemath is there a way to represent plots in bases other then base10? If at all possible being able to plot from base2 to base36.</p>
https://ask.sagemath.org/question/53815/plotting-in-base-n/?comment=53832#post-id-53832Try exploring the optional arguments `ticks`, `tick_labels`, `tick_formatter`
of graphics objects.Sun, 11 Oct 2020 13:42:25 +0200https://ask.sagemath.org/question/53815/plotting-in-base-n/?comment=53832#post-id-53832Answer by slelievre for <p>In sagemath is there a way to represent plots in bases other then base10? If at all possible being able to plot from base2 to base36.</p>
https://ask.sagemath.org/question/53815/plotting-in-base-n/?answer=53863#post-id-53863Internally computers work in base 2. Many humans are used to base 10.
Programming languages and computer algebra systems take that into account.
Typically they accept input in base 10, work on it in base 2,
and display results in base 10.
In some cases one wants to use other bases.
There are various levels of support for that.
It's not common enough that plotting functions have dedicated flags,
but they often offer ways to tweak the display.
In matplotlib and in Sage, see `ticks`, `tick_labels`, `tick_formatter`.Mon, 12 Oct 2020 14:49:21 +0200https://ask.sagemath.org/question/53815/plotting-in-base-n/?answer=53863#post-id-53863Comment by nooniensoong97 for <p>Internally computers work in base 2. Many humans are used to base 10.</p>
<p>Programming languages and computer algebra systems take that into account.</p>
<p>Typically they accept input in base 10, work on it in base 2,
and display results in base 10.</p>
<p>In some cases one wants to use other bases.
There are various levels of support for that.</p>
<p>It's not common enough that plotting functions have dedicated flags,
but they often offer ways to tweak the display.</p>
<p>In matplotlib and in Sage, see <code>ticks</code>, <code>tick_labels</code>, <code>tick_formatter</code>.</p>
https://ask.sagemath.org/question/53815/plotting-in-base-n/?comment=53870#post-id-53870I was expecting that this program would be designed to have full support for any bases from base 2 to base 36. I guess maybe a possible add on in future updates? Also looks like the ticks, tick_labels, and tick_format only works on plot function. I tried it on list_plot and got an error.Mon, 12 Oct 2020 15:33:10 +0200https://ask.sagemath.org/question/53815/plotting-in-base-n/?comment=53870#post-id-53870Comment by slelievre for <p>Internally computers work in base 2. Many humans are used to base 10.</p>
<p>Programming languages and computer algebra systems take that into account.</p>
<p>Typically they accept input in base 10, work on it in base 2,
and display results in base 10.</p>
<p>In some cases one wants to use other bases.
There are various levels of support for that.</p>
<p>It's not common enough that plotting functions have dedicated flags,
but they often offer ways to tweak the display.</p>
<p>In matplotlib and in Sage, see <code>ticks</code>, <code>tick_labels</code>, <code>tick_formatter</code>.</p>
https://ask.sagemath.org/question/53815/plotting-in-base-n/?comment=53879#post-id-53879Not clear to me what "full support" could mean. Or what the concrete question is.
Or what would be an example of something you would like to work but does not work.Mon, 12 Oct 2020 23:00:57 +0200https://ask.sagemath.org/question/53815/plotting-in-base-n/?comment=53879#post-id-53879Comment by nooniensoong97 for <p>Internally computers work in base 2. Many humans are used to base 10.</p>
<p>Programming languages and computer algebra systems take that into account.</p>
<p>Typically they accept input in base 10, work on it in base 2,
and display results in base 10.</p>
<p>In some cases one wants to use other bases.
There are various levels of support for that.</p>
<p>It's not common enough that plotting functions have dedicated flags,
but they often offer ways to tweak the display.</p>
<p>In matplotlib and in Sage, see <code>ticks</code>, <code>tick_labels</code>, <code>tick_formatter</code>.</p>
https://ask.sagemath.org/question/53815/plotting-in-base-n/?comment=54155#post-id-54155I am referring the program being able to switch to any base to process any calculations. For example, I might want to do all my calculations in base 8, and be able to also have the plots in base 8.Sun, 08 Nov 2020 06:53:37 +0100https://ask.sagemath.org/question/53815/plotting-in-base-n/?comment=54155#post-id-54155