523 reputation
216
bio website
location
age
visits member for 2 years, 6 months
seen May 5 at 7:45

Jul
2
awarded  Curious
Jun
9
awarded  Nice Question
May
30
awarded  Yearling
Apr
9
awarded  Popular Question
Mar
14
comment Render dynamic Graphics objects static
Yes, I understand this. What I meant was that the FrontEnd on linux requires an X-Window (the piece of software in charge of displaying any graphical user interface). A X-Display is however not necessarily available if the login is on the command line (e.g. if I want to run Mathematica on a cluster). However I realized now that even Export[Plot[..]] requires a FrontEnd and thus a X-Display. It seems that the only way to circumvent it is to use a X-Display on a remote computer in general. This would however make it slow again.
Mar
12
awarded  Revival
Mar
8
comment Render dynamic Graphics objects static
So far I did not see any crashes (I use Mathematica 9 on Linux). However I am not yet sure about the last part in your conversion. Everything seems to work if I use the native front end, but with MathLink I get A front end is not available; certain operations require a front end.. Which is not too surprising, because the linked MathKernel will a priori not even know about an X-Window to display anything.
Mar
8
comment Render dynamic Graphics objects static
Do you have an example for the crash? Does it occur when the result is displayed, or when it is build?
Mar
7
comment Render dynamic Graphics objects static
The command FullGraphics seems to be the right direction. But is it complete? And, if yes, how can I influence properties such as the aspect ration of the plot?
Mar
7
comment MathLink Graphical Output (Plots) to File
Here you go mathematica.stackexchange.com/questions/43585/… . The present question is essentially answered, I am not sure which answer to accept though. Both were really useful.
Mar
7
asked Render dynamic Graphics objects static
Mar
7
asked Determine types of input, output and internal variables in compiled functions
Mar
2
comment MathLink Graphical Output (Plots) to File
@AlexeyPopkov Your reference to ExportSring is interesting again. However, currently I do not intend to embed the graphics in the front end. The solution will rather be to transfer the files separately. I am on Linux and there are several standard options to do this efficiently and automated. To reference the plots transparently in the front end I can simply display the file path (remote or local) and add functionality which opens the file in an appropriate viewer. My current focus is to implement a bullet proof way of generating the graphics. To transfer Graphics is still interesting tho.
Mar
2
comment MathLink Graphical Output (Plots) to File
I have made another edit exploring your proposal to use Format to redirect the output. See the question.
Mar
2
revised MathLink Graphical Output (Plots) to File
added 784 characters in body
Mar
2
comment MathLink Graphical Output (Plots) to File
Yes, I understand your point and agree. I spent some time now experimenting with Export to svg. Though the produced plots mostly look nice I observed that they are indeed not always rendered correctly. So your information that only bitmaps are rendered correctly is useful again. I am still thinking about using a local official front end to render Graphics objects. Could it be possible to render the Dynamic elements you mentioned above static so that static Graphics are transferred? For exported raster picture they must have been rendered static as well.
Mar
2
revised MathLink Graphical Output (Plots) to File
added 70 characters in body
Mar
2
comment MathLink Graphical Output (Plots) to File
Maybe the solution is to provide both, fully rendered display output (which may be used if there is no second instance of Mathematica) and Graphics output, depending on user wish. Based on your helpful comments, I tried to re-enable the old fashioned way of display output. However, I don't understand how to deal with the abbreviate postscript output. See my Edit 2 to the question.
Mar
2
revised MathLink Graphical Output (Plots) to File
added 1276 characters in body
Mar
2
comment MathLink Graphical Output (Plots) to File
I understand (I also understood now that DisplayPacket is merely an object type and not a function which I could use to generate them). Yes, indeed, if Graphics objects are not desired it will be better to suppress them. However my starting point was that I wanted to find a way to display them. If Mathematica is available on the user side too (for me it is), I can easily render Graphics objects using a second instance of Mathematica. However I need to identify them in the MathLink output stream.