ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 27 Sep 2014 08:32:32 -0500how to get a log distribution on the x-axis of a semilogx plot?http://ask.sagemath.org/question/24310/how-to-get-a-log-distribution-on-the-x-axis-of-a-semilogx-plot/I tried to plot some frequency response. In the most simple case this may look like A(w). I can make plots using different statements like plot_semiogx, or plot(...,scale='semilogx') etc, but the results look odd. Apparently the internally generated points on the x-axis lways have a linear distribution. Only forcing an exaggerated number of points (e.g. plot_points=100000) results in a correct graph. I didn't find a better solution. I think the plot command should distribute the x-points in a log-fashion automatically for semilogx and loglog plots, thus I consider this a bug. I'm using sage 6.2 right now. Any ideas how to workaround/fix this?
w = var('w')
A0=1e7
w0=100
A(w)=A0*(1/(1+i*w/w0))
plot_semilogx(abs(A(w)),1,1e7)gg@gSat, 27 Sep 2014 08:32:32 -0500http://ask.sagemath.org/question/24310/Creating a semilogx (or semilogy or loglog) plothttp://ask.sagemath.org/question/8497/creating-a-semilogx-or-semilogy-or-loglog-plot/I would like to create a semilogx plot of some data. I have two lists of data and would like to use something like list_plot() to visualize the data, but the x-axis should be logarithmic. I have attempted (and failed) in using pyplot, but get an error message like this:
Your currently selected backend, 'agg' does not support show().
Please select a GUI backend in your matplotlibrc file
which I don't understand. Is there an option to plot() and/or list_plot() that allows one to choose logarithmic axes?
Thanks.Ed ScheinermanSun, 20 Nov 2011 12:05:20 -0600http://ask.sagemath.org/question/8497/