Post a reply
Username:
Note:If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - Generating image (jpeg file) using ResTree
Author Message
  Post subject:  Re: Generating image (jpeg file) using ResTree  Reply with quote
Dear Hannes,

Thank you very much for your help! You were quite right that graphviz wasn't installed correctly. After getting some help from IT support from the math department, it is working now and the graphic output is produced! :)
Post Posted: Thu Aug 29, 2013 4:58 pm
  Post subject:  Re: Generating image (jpeg file) using ResTree  Reply with quote
To produce the jpeg file:
Code:
dot  -Tjpeg  ResTree.dot -o  ResTree.dot.jpg 

Try this in a terminal.
If it does not work, graphviz is not correctly installed (dot is a program from graphviz).
Otherwise, your PATH may be wrong:
Try within Singular:
Code:
system("sh","echo $PATH");

which should have /sw/bin in it.
Also try
Code:
system("sh","which dot");


Hope that helps
Post Posted: Tue Aug 20, 2013 1:07 pm
  Post subject:  Re: Generating image (jpeg file) using ResTree  Reply with quote
I forgot to mention the operating system I am using (in case it is relevant). I am using Mac OS X (Version 10.8.4).
Post Posted: Mon Aug 19, 2013 10:47 pm
  Post subject:  Generating image (jpeg file) using ResTree  Reply with quote
Hi all,

I am trying to use ResTree function from resgraph library. I have already installed xv and graphviz packages (all using fink project), and both are in standard search PATH. Now, when I try to replicate the exact code given here mainsite/tutor_resol.ps (well, I am not allowed to post URLs apparently).

(namely, page 4) it is not working. To be more precise, I enter all the commands (defining the necessary ring and ideal), and when I finally type in: ResTree(re, coll[1]), the following is displayed:

sh: dot: command not found
Currently showing graphics in separate window
Press <Return> to continue

And pop-up window shows-up (from XQuartz software) saying that:

Can't open the file "Users/myusername/ResTree.dot.jpg"
No such file or directory.

When I go to the indicated folder (Users/myusername/) I did find file named "ResTree.dot" (which was generated right after I entered "ResTree(re, coll[1])" command), but it is not a JPEG file. So I think the problem is Singular is not generating the desired JPEG file for some reason.

I have been spending past 3 days trying to work this out, but to no avail. I would very much appreciate any help!
Post Posted: Mon Aug 19, 2013 10:44 pm


It is currently Fri May 13, 2022 11:04 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group