Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I need to save the result of GraphicsRow command as a pdf or jpg file. Something like GraphicsRow[{plt1,plt2,plt3}] -> pdf.

On clicking on the image there is not a "Save Graphics as" option that one finds on a Plot output.

In the end, I need to add arrows and annotations to the whole output and save it as a single jpg or pdf file. I can add stuff but I can't get the output saved unless I issue the command Export["test.pdf", %].

What am I missing?

share|improve this question
1  
You can Rasterize your graphics and work with the result... –  Yves Klett Jan 17 '13 at 14:29
1  
Export["thePlotsThicken.png", GraphicsRow[{plt1, plt2, plt3}]] should work. Or plots = GraphicsRow[{plt1, plt2, plt3}]] followed by an Export. –  cormullion Jan 17 '13 at 15:35
1  
You could select the cell the containing your graphics grid and then select the File > Save Selection As ... menu item. You will then get a dialog that will let you save your grid as a PDF. –  m_goldberg Jan 17 '13 at 15:46
    
@m_goldberg - Many many thanks. It was exactly what I needed it. –  Ed Mendes Jan 17 '13 at 16:40
    
You can also try using FullGraphics on the output, which should give you the context menu. Do note that it can throw a few surprises –  rm -rf Jan 17 '13 at 18:58
show 1 more comment

1 Answer 1

The comments already solve the problem, in particular by using the File menu or Export. But there is also a way to get the usual behavior back that you expect for single Plot output, i.e., a contextual menu appearing when the graphic is selected. It just has to be selected in the "right way."

Create the plots, and then press the back arrow to bring the cursor right behind the graphics row out put:

{plt1, plt2, plt3} = Table[Plot[Sin[x + a], {x, 0, Pi}], {a, 0, 2}];
GraphicsRow[{plt1, plt2, plt3}]

cursor

The vertical line on the right is the cursor. Now press Shift + back arrow to select the graphic:

highlight

As you can see, the orange highlighting around the graphic appears, instead of a gray box. Now right click on the orange border (not the graphic because that will again switch to the gray box):

menu

And there's the contextual menu you were looking for!

Edit

Another way of getting the orange box on whose border you want to right-click is this:

First click on the graphics row to get the gray box, then press Ctrl+. (the shortcut for Extend Selection) repeatedly until the whole output is highlighted in orange as in the above screen shot.

share|improve this answer
    
Thank you ever so much! –  Ed Mendes Jan 19 '13 at 2:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.