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.Fri, 09 Oct 2020 01:50:44 +0200How to set the matplotlib backend used by plot()https://ask.sagemath.org/question/53794/how-to-set-the-matplotlib-backend-used-by-plot/SageMath uses `matplotlib` as its graphics engine and the module itself can work with many backends. But how can I set a GUI matplotlib backend to be used by the `plot()` function and its friends, at least in the command-line interface? And is there a way to set a default backend?
In my setup, `plot()` doesn't respect the backend set by the `%matplotlib` magic, but `matplotlib.pyplot.plot()` does. Even worse, the default backend creates a PNG image file and opens it in the system's viewer.
I'm on macOS 10.13 "High Sierra" running SageMath 9.1, the binary app version.leogamaFri, 09 Oct 2020 01:50:44 +0200https://ask.sagemath.org/question/53794/Change the default number of points in plottinghttps://ask.sagemath.org/question/31711/change-the-default-number-of-points-in-plotting/ By default the plot function has only 200 points:
sage.plot.plot.plot(funcs, exclude=None, fillalpha=0.5, fillcolor='automatic', detect_poles=False, plot_points=200, thickness=1, adaptive_tolerance=0.01, rgbcolor=(0, 0, 1), adaptive_recursion=5, aspect_ratio='automatic', alpha=1, legend_label=None, fill=False, *args, **kwds)
But this look awful when plotting for example $f(x) = \frac{\sin x }{x}$.
Since my machine is quite fast, I'd like to set the default to 50000 points.
Is this possible?marmistrzSun, 20 Dec 2015 13:26:04 +0100https://ask.sagemath.org/question/31711/Configure a .vimrc in vim editing modehttps://ask.sagemath.org/question/31647/configure-a-vimrc-in-vim-editing-mode/ Since I'm Vim addicted, I set to vim the Editor keyboard bindings in my [account settings](https://cloud.sagemath.com/settings/account). I would like to make use of `.vimrc` file as well, so I tried creating one in the project folder, but then when I open a worksheet the `.vimrc` is not effective. Is it possible to source a `.vimrc` file from a worksheet when using Vim bindings? If yes, how?
natema1Thu, 17 Dec 2015 09:49:07 +0100https://ask.sagemath.org/question/31647/Hiding toolbarshttps://ask.sagemath.org/question/29876/hiding-toolbars/I often use the SageMathCloud in the classroom. I would like to hide the toolbars to have more room for the math. I know I can hide the User and Project menus by clicking on the little X at the right, and I have unchecked the "Extra Button Bar" in my settings. Is there also a way to hide the other toolbar (with buttons like Run, Stop, Restart, etc.)?Jeremy MartinFri, 09 Oct 2015 17:33:15 +0200https://ask.sagemath.org/question/29876/browser settingshttps://ask.sagemath.org/question/10199/browser-settings/Hi Folks:
I would like to know where I would configure browser settings for the user on a Sage server.
I built a Sage server for students to use at school (Sage 5.9 on Ubuntu Server 12.04.2 x64). While building the system, I was comparing the browser behavior (using Firefox 21.0 w/ Java Platform SE 7 & Deployment Toolkit) to the public Sage server at sagenb.org (Sage 5.4). I noticed a couple of differences: First, when a new worksheet is made, the sagenb.org site displays the new worksheet in the same tab whereas the home-built server opens another tab for the worksheet. Second, when a plot is created, the sagenb.org site automatically renders it interactively whereas the home-built server renders a static image first with an interactive button.
Are these differences a result of different Sage versions? Are there other settings? Can these setting be changed? If so, where are they located and are they documented? Thanks!
Have a GREAT DAY!!
Shaun
em2slynMon, 10 Jun 2013 21:24:54 +0200https://ask.sagemath.org/question/10199/