Skip to main content
10 events
when toggle format what by license comment
Dec 13, 2012 at 18:45 comment added Szabolcs @kale you can also select the whole thing with the mouse (the same way you select text) and use File -> Save Selection As
Dec 13, 2012 at 18:43 comment added kale @Szabolcs, Yep, that's what I ended up doing after you answered. If I want just a image, I can export as an .emf and it scales well enough for presentations, etc...
Dec 13, 2012 at 18:41 comment added Szabolcs @kale Use Export, not the context menu, to export to PDF. It'll contain both the legend and the graphic.
Dec 13, 2012 at 18:38 comment added kale @Szabolcs, The things is, I pumped out a nifty plot the other day. Exported it to a .pdf and emailed it to my boss. I didn't realize at the time that the legend wasn't exported as well. True, I could copy and paste the cell and save the entire notebook as a pdf, but I was basically trying to get a flavor for the new Legended behavior.
Dec 13, 2012 at 18:05 comment added rcollyer I'm confused. The graphics object in Legended is not rasterized, in the docs, yes, but not in the output normally generated. This does cause some resizing issues as you are now resizing two graphics at the same time, but it is not due to rasterization.
Dec 13, 2012 at 17:42 comment added Szabolcs @kale I also have to ask: why do you want Graphics? This Legended thing can be exported to graphics formats just fine. It can also be included in Graphics as Inset. The "only" problem you'll have is resizing. You can't create figures which have legends and will look good even after resizing. This is partly due to how Mathematica has both graphics coordinates and offset coordinates (actual physical untis), which sometimes conlfict ....
Dec 13, 2012 at 17:40 comment added Szabolcs @kale No, there's no way to do that with the built-in legends support. This is one of the reasons I'm not very happy with the new legending. Unfortunately I believe that it's simply impossible to implement a resize-friendly version of this. I got quite frustrated with these things in the past (see e.g. here), and I also came to the conclusion that Row/Column/Grid-like constructs are easier to handle than GraphicsGrid/Inset. So within the constraints of the current Graphics implementation Legended might actually be the best choice ...
Dec 13, 2012 at 16:56 comment added kale @Szabolcs, Anyway to combine without rasterizing?
Dec 13, 2012 at 16:52 comment added rcollyer Right. But, the Graphics expression is the first argument to Legended, so it can easily be extracted and used without the legend.
Dec 13, 2012 at 16:50 history answered Szabolcs CC BY-SA 3.0