2023-04-22 16:03:26 +0200 | received badge | ● Popular Question (source) |
2023-04-22 16:03:26 +0200 | received badge | ● Notable Question (source) |
2022-08-13 18:19:13 +0200 | received badge | ● Popular Question (source) |
2020-03-30 19:26:12 +0200 | received badge | ● Notable Question (source) |
2020-03-30 19:26:12 +0200 | received badge | ● Famous Question (source) |
2018-07-11 17:19:16 +0200 | received badge | ● Taxonomist |
2016-12-08 18:36:31 +0200 | commented answer | Displaying a matplotlib picture using SageTeX Thank you slelievre. I too get out of the issue... |
2016-12-08 10:46:27 +0200 | received badge | ● Editor (source) |
2016-12-08 10:45:42 +0200 | asked a question | Displaying a matplotlib picture using SageTeX I couldn't draw the picture I want in a LaTeX document using SageTeX. Here is my code. \begin{sagesilent} import numpy as np from scipy.fftpack import fft,ifft N1 = 16 n1 = np.linspace(0.0,16,N1) y = np.array([np.cos(((2.0 * np.pi*i))/N1) for i in range (0,N1)]) yf = fft(y) import matplotlib import matplotlib.pyplot as plt fig = plt.figure(2) ax = fig.add_subplot(221) plt.plot(n1,y) ay = fig.add_subplot(222) p = plt.plot(n1,yf) g = plt.savefig("test.svg", format="svg") plt.close(fig) \end{sagesilent} |
2016-03-19 15:00:56 +0200 | asked a question | passing an array of values or a matrix to a user defined function, also expected the array or the matrix as output...How can we do this? passing an array of values or a matrix to a user defined function, also expected the array or the matrix as output...How can we do this? |
2016-03-19 14:51:12 +0200 | received badge | ● Famous Question (source) |
2016-03-19 14:50:33 +0200 | received badge | ● Famous Question (source) |
2015-05-17 14:44:04 +0200 | received badge | ● Popular Question (source) |
2015-01-15 13:31:16 +0200 | answered a question | Is there a way to insert a .png into a LaTex document? you can do it by \includegraphics {name.png} |
2015-01-15 13:21:58 +0200 | commented answer | Is there any way to integrate matplotlib plots in my latex document using sagetex? thanks for the answer. understood from the example. |
2015-01-14 16:37:06 +0200 | asked a question | Is there any way to integrate matplotlib plots in my latex document using sagetex? I have used this code to draw a picture using matplotlib.pyplot sagenb plots this nicely but i couldn't get this in my latex document when i use sagetex. \begin{sagesilent} import matplotlib.pyplot as plt plt.plot([1,2,3,4],[1, 3, 2, 4]) plt.savefig('test.png') \end{sagesilent} i get this error message: ** Error in Sage code on line 53 of sagetextest.tex! Traceback follows. Traceback (most recent call last): File "sagetextest.py", line 69, in <module> sagetex.plot(_sage_const_3 , plt.printfig('test.png'), format='notprovided', epsmagick=False) AttributeError: 'module' object has no attribute 'printfig' ** Running Sage on sagetextest.sage failed! Fix sagetextest.tex and try again. |
2013-12-14 14:35:06 +0200 | received badge | ● Notable Question (source) |
2013-10-13 04:27:16 +0200 | received badge | ● Popular Question (source) |
2013-09-21 16:25:45 +0200 | received badge | ● Notable Question (source) |
2013-06-13 22:59:44 +0200 | received badge | ● Student (source) |
2013-06-12 14:33:24 +0200 | asked a question | Please help me to draw f(x) = sin(x) if x<=0 and f(x)=cos(x) if x>1 thanks for your answers |
2013-01-08 12:53:16 +0200 | received badge | ● Nice Answer (source) |
2013-01-02 00:07:22 +0200 | received badge | ● Teacher (source) |
2013-01-01 10:43:23 +0200 | answered a question | SageTeX doesn't work Dear friend, Sagetex works fine for me! Try to copy the file sagetex.sty and paste it in your tex working directory. That may resolve your problem. Myself using it with Kile editor latest version. Good Luck |
2012-12-18 11:42:18 +0200 | marked best answer | plotting parallel You could use Here is a link to the manual for more details. |
2012-12-18 11:42:18 +0200 | received badge | ● Scholar (source) |
2012-12-18 11:41:59 +0200 | received badge | ● Supporter (source) |
2012-12-16 08:46:09 +0200 | asked a question | plotting parallel Is it possible to plot two functions parallel more clearly i want to plot the function and its Fourier transform to the right of the previous figure |
2012-12-09 03:46:09 +0200 | received badge | ● Popular Question (source) |
2012-08-28 08:23:12 +0200 | answered a question | sagetex compilation problem ya, i got the problem solved. The error was missing the file sagetex.py in the path Thanks to god for giving me that observation. |
2012-08-28 04:42:29 +0200 | asked a question | sagetex compilation problem Traceback (most recent call last): File "chapter5.py", line 5, in <module> sagetex.openout('chapter5') AttributeError: 'module' object has no attribute 'openout' thanks for correcting this error getting for me while trying to compile .tex file using sagetex |
2012-04-16 11:05:31 +0200 | commented answer | How to plot composition of unit step and sin functions now i understood Niles thanks for your kindhearted help |
2012-04-16 11:03:13 +0200 | commented answer | How to plot composition of unit step and sin functions i defined unit step my own using def in this way def h(x): if (x>0): return 1 if (x<=0): return 0 and then plot(h(sin(x)), (x, -10, 10)) |
2012-04-16 10:39:33 +0200 | asked a question | How to plot composition of unit step and sin functions When i was trying to plot the function U(sin(x)) where U is the unit step function it leaves error message, but U(exp(x)) worked nicely the error message was |