Ask Your Question

Turiel's profile - activity

2020-04-24 22:30:17 -0600 received badge  Notable Question (source)
2020-03-10 03:30:18 -0600 received badge  Notable Question (source)
2019-05-17 19:31:15 -0600 received badge  Popular Question (source)
2019-01-02 11:31:45 -0600 received badge  Popular Question (source)
2018-05-22 06:21:44 -0600 received badge  Editor (source)
2018-05-22 06:20:59 -0600 asked a question Animated Plots Not Working on Windows 10 (Image Magick)

Hi,

I've looked up the following documentation: http://doc.sagemath.org/html/en/refer... and tried to use the first example after installing ImageMagick.

However when I run the script, I get nothing, and when I look in the terminal I only see "Invalid Parameter - Background Image".

I tried reinstalling ImageMagick and this time tick all the boxes, not just the default ones, and when I run the command again I get a longer message "convert.exe: unable to open image (...)", similar to what was signaled here:

https://ask.sagemath.org/question/410...

I'm running SageMath8.2 on Windows 10. How can I fix this ? If the problem is that SageMath cannot find the correct paths to ImageMagick, how can I fix that ?

Thank you very much, Turiel.

PS: I also get this message in the Notebook when I tried to run the command for the first time, it disappears when I run it again:

/opt/sagemath-8.2/local/lib/python2.7/site-packages/sage/repl/rich_output/display_manager.py:590: RichReprWarning: Exception in _rich_repr_ while displaying object: Error: Cannot generate GIF animation. Verify that convert (ImageMagick) or ffmpeg is installed, and that the objects passed to the animate command can be saved in PNG image format.

See www.imagemagick.org and www.ffmpeg.org for more information. RichReprWarning,

2018-05-19 05:01:13 -0600 received badge  Supporter (source)
2018-05-19 05:00:55 -0600 commented answer Problem : ImageMagick and animate

Hi, I've had the same issue as kroko and I'd love it if ImageMagick and the ability to animate plots was featured by default in SageMath for Windows. I've recently installed SageMath 8.2 which fixed some issues I had with plotting figures. But I still get nothing when I wish to animate a plot and use the textbook example provided.

Is there going to be another update very soon, or do I have to wait for SageMath 8.3 ?

Thank you very much, Turiel

2018-05-14 04:43:07 -0600 received badge  Self-Learner (source)
2018-05-14 04:43:07 -0600 received badge  Teacher (source)
2018-05-14 03:56:39 -0600 answered a question Orienting and Saving 3D Plots

Hi !

As eric_g suggested, this issue has been fixed for Windows 10 in SageMath 8.2 ! I ran my code exactly the same way I wrote it weeks ago, and now the .png image generated with the save function using the same arguments I used in the show function looks exactly the same as what's in the Notebook.

Thank you very much, Turiel

2018-04-30 06:03:40 -0600 commented answer Orienting and Saving 3D Plots

Thank you ! I have tried but... the following command works fine: G.rotate([1,0,0],pi/4).show(aspect_ratio=[1,1,1],frame=False) And this one crashes: G.rotate([1,0,0],pi/4).show(aspect_ratio=[1,1,1],frame=False,orientation=(0,0,0,0))

And similarly this one works: G.rotate([1,0,0],pi/4).save('ImageTest.png',aspect_ratio=[1,1,1],frame=False) ...and this one crashes: G.rotate([1,0,0],pi/4).save('ImageTest.png',aspect_ratio=[1,1,1],frame=False,orientation(0,0,0,0))

So I still cannot get the desired point of view on my figure !

2018-04-29 13:41:52 -0600 commented answer Orienting and Saving 3D Plots

Alright, I will wait patiently and let you know how it goes when SageMath 8.2 comes out.

2018-04-29 06:08:06 -0600 commented answer Orienting and Saving 3D Plots

Yes, I am using Windows 10

2018-04-28 15:07:19 -0600 commented answer Orienting and Saving 3D Plots

I have copy pasted exactly your code, I have SageMath 8.1 as well, but I still have the same problem ! And I am using exactly your code !

I have no idea why this is happening.

2018-04-27 11:34:09 -0600 received badge  Student (source)
2018-04-27 11:32:26 -0600 asked a question Orienting and Saving 3D Plots

Hi !

I am very new to using Sage, I've started only a few weeks ago. I hope my inability to answer anyone's questions won't ruin my "karma" ! Anyway, here is my first question:

I've been experimenting with plotting 3D objects, so far. Right now, I am plotting simple cubes scattered in space. With great satisfaction, I've noticed I could initialize the point of view of my 3D plot by specifying:

orientation(0,0,0,0)

That initializes to X being horizontal, Y vertical, and Z orthogonal to the screen. Then, I specify:

G.rotate([1,0,0],pi/4).show(aspect_ratio=[1,1,1],frame=False)

and get a point of view I really like. My goal is to generate a bunch of .png files of my cubes from different points of view, and I was hoping to use this rotate() functionality with a [ for i in range(n)] type statement. Therefore, I'd really like SAGE to write a bunch of .png files without me generating images one by one and saving manually. So I tried using the save() function, like so:

G.rotate([1,0,0],pi/4).save("MyImage.png",aspect_ratio=[1,1,1],frame=False)

Here is my problem: when I use the save() function, my previous orientation(0,0,0,0) statement is completely overridden, and the resulting MyImage.png I get is rotated according to rotate([1,0,0],pi/4), but not from the intented X being horizontal, Y vertical, and Z orthogonal to the screen configuration, rather, from the default point of view show() gives me, if I do not specify orientation(0,0,0,0).

Why is it so, and how can I fix this ?

Thank you very much, Turiel.