Graphics on the command line Mathematica 7?

How to make graphical graphics Mathematica 7 command line?

In older versions of Mathematica "Plot [x, {x, 1,2}]" a pop-up window will appear displaying a graph with some formatting options (line thickness, equal to xy scaling, etc.).

Mathematica 6 and do not do this. According to http://pages.uoregon.edu/noeckel/Mathematica.html, most of the graphics code is now in the laptop interface, and not in the command line interface.

The page above also suggests "<<JavaGraphicsX"how to hack (where X is the backtick symbol that I cannot enter here). This works, but the graphics window has no parameters, and when I resize the window, the graph does not change.

Is there a better solution?

My attempt to download Motif.m sadly fails:

In[1]:= <<Motif` 

StringForm::sfr:  
   Item 0 requested in "The Motif` graphics package is obsolete, loading 
      JavaGraphics`." out of range; 0 items available. 
Motif::obslt: The Motif` graphics package is obsolete, loading JavaGraphics`. 
 -- Java graphics initialized --  

This Debugging Mathematica 5 Work Program Using Mathematica 7 I tried downloading Version5`Graphics, but that didn't help either.

In[1]:= << Version5`Graphics` 
 -- PostScript to stdout graphics initialized --  

In[2]:= Plot[x,{x,1,2}] 
%! 
%%Creator: Mathematica 
%%AspectRatio: .61803 
MathPictureStart 
/Mabs {  
Mgmatrix idtransform 
Mtmatrix dtransform 
} bind def 

[bunch of Postscript crap] 

% End of Graphics 
MathPictureEnd 

Out[2]= -Graphics- 
+3
source share
2 answers

If you like getting graphics as files instead of pop-ups, you can use Export:

SetDirectory[NotebookDirectory[]]    
gfx = Plot[Sin[x], {x, 0, 3}];
Export["sinplot.pdf", gfx]

Of course, you should replace NotebookDirectoryit with what makes sense outside the context of the laptop. You can use Showto combine Graphics objects, set ranges and viewpoints, etc.

+3
source

Currently, you need to specify java grahics:

 <<JavaGraphics`
 Plot[PLOT OPTIONS]
0
source

Source: https://habr.com/ru/post/1786046/


All Articles