Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #3246 > unrolled thread

Export a Grid[] object without loosing it's format

Started byCupidio <andreatacchella@gmail.com>
First post2011-06-23 11:27 +0000
Last post2011-06-29 21:29 +0000
Articles 5 — 5 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Export a Grid[] object without loosing it's format Cupidio <andreatacchella@gmail.com> - 2011-06-23 11:27 +0000
    Re: Export a Grid[] object without loosing it's format Koslicki <koslicki@math.psu.edu> - 2011-06-24 11:52 +0000
    Re: Export a Grid[] object without loosing it's format AES <siegman@stanford.edu> - 2011-06-24 11:55 +0000
    Re: Export a Grid[] object without loosing it's format Helen Read <readhpr@gmail.com> - 2011-06-24 11:56 +0000
    Re: Export a Grid[] object without loosing it's format Sebastian Mansfeld <sebastian.mansfeld@googlemail.com> - 2011-06-29 21:29 +0000

#3246 — Export a Grid[] object without loosing it's format

FromCupidio <andreatacchella@gmail.com>
Date2011-06-23 11:27 +0000
SubjectExport a Grid[] object without loosing it's format
Message-ID<itv7uf$pbr$1@smc.vnet.net>
Hi,
I am experiencing some problems when I try to export to a PDF file a
Grid[] object. The grid is quite big, with graphics, text and other
grids nested in it. It is perfectly formatted within the mathematica
notebook, but when I export it to PDF it becomes a complete mess. Also
"printing" to PDF doesn't work.

Is there a way to have it exported exactly as it looks like within the
notebook, in a PDF or EPS file?

I got some results by exporting it to a BMP file, specifing the size
with ImageSize, but the file produced is too big, and that's not
vector graphics! And it seems that I can't use ImageSize when
exporting to PDF...

[toc] | [next] | [standalone]


#3283

FromKoslicki <koslicki@math.psu.edu>
Date2011-06-24 11:52 +0000
Message-ID<iu1tq2$9l7$1@smc.vnet.net>
In reply to#3246
I've experienced the same problem lately and have failed to find an
adequate solution (besides utilizing Photoshop to fix the re-formatted
output Mathematica gives).

~David



On Jun 23, 7:27 am, Cupidio <andreatacche...@gmail.com> wrote:
> Hi,
> I am experiencing some problems when I try to export to a PDF file a
> Grid[] object. The grid is quite big, with graphics, text and other
> grids nested in it. It is perfectly formatted within the mathematica
> notebook, but when I export it to PDF it becomes a complete mess. Also
> "printing" to PDF doesn't work.
>
> Is there a way to have it exported exactly as it looks like within the
> notebook, in a PDF or EPS file?
>
> I got some results by exporting it to a BMP file, specifing the size
> with ImageSize, but the file produced is too big, and that's not
> vector graphics! And it seems that I can't use ImageSize when
> exporting to PDF...

[toc] | [prev] | [next] | [standalone]


#3288

FromAES <siegman@stanford.edu>
Date2011-06-24 11:55 +0000
Message-ID<iu1tvq$9nd$1@smc.vnet.net>
In reply to#3246
In article <itv7uf$pbr$1@smc.vnet.net>,
 Cupidio <andreatacchella@gmail.com> wrote:

> I am experiencing some problems when I try to export to a PDF file a
> Grid[] object. The grid is quite big, with graphics, text and other
> grids nested in it. It is perfectly formatted within the mathematica
> notebook, but when I export it to PDF it becomes a complete mess.

I'm guessing you're trying to make a big poster to be printed on some 
large-format printer and used for a hallway display or a poster session 
at a meeting нн something I've done "by hand" in Illustrator, but never 
thought of doing in Mathematica.

If so, any tips on lessons you've learned would be welcome.

[toc] | [prev] | [next] | [standalone]


#3289

FromHelen Read <readhpr@gmail.com>
Date2011-06-24 11:56 +0000
Message-ID<iu1u0p$9o0$1@smc.vnet.net>
In reply to#3246
On 6/23/2011 7:27 AM, Cupidio wrote:
> Hi,
> I am experiencing some problems when I try to export to a PDF file a
> Grid[] object. The grid is quite big, with graphics, text and other
> grids nested in it. It is perfectly formatted within the mathematica
> notebook, but when I export it to PDF it becomes a complete mess. Also
> "printing" to PDF doesn't work.
>
> Is there a way to have it exported exactly as it looks like within the
> notebook, in a PDF or EPS file?
>
> I got some results by exporting it to a BMP file, specifing the size
> with ImageSize, but the file produced is too big, and that's not
> vector graphics! And it seems that I can't use ImageSize when
> exporting to PDF...

I have had a lot of issues with esporting large grids to PDF, which I 
brought up on this forum last December or January. The problem was that 
the entire Grid got stuffed into one 8.5" by 11" page, resulting in an 
extremely long, narrow grid with tiny fonts etc., in a very bad aspect 
ratio. I could find no way to get Mathematica to put in page breaks when 
creating the PDF.

I finally resorted to using CreateDocument and NotebookPrint, like this.

path=NotebookDirectory[];
nb = CreateDocument[grid, PageBreakWithin -> True, Visible -> False];
NotebookPrint[nb, path <> "\\filename.pdf"]


(* Where grid is the name of the Grid, and filename.pdf is the desired 
filename.*)


-- 
Helen Read
University of Vermont

[toc] | [prev] | [next] | [standalone]


#3353

FromSebastian Mansfeld <sebastian.mansfeld@googlemail.com>
Date2011-06-29 21:29 +0000
Message-ID<iug5fa$9eh$1@smc.vnet.net>
In reply to#3246
On Jun 23, 1:27 pm, Cupidio <andreatacche...@gmail.com> wrote:
> Hi,
> I am experiencing some problems when I try to export to a PDF file a
> Grid[] object. The grid is quite big, with graphics, text and other
> grids nested in it. It is perfectly formatted within the mathematica
> notebook, but when I export it to PDF it becomes a complete mess. Also
> "printing" to PDF doesn't work.
>
> Is there a way to have it exported exactly as it looks like within the
> notebook, in a PDF or EPS file?
>
> I got some results by exporting it to a BMP file, specifing the size
> with ImageSize, but the file produced is too big, and that's not
> vector graphics! And it seems that I can't use ImageSize when
> exporting to PDF...

As an alternative to Grid[] I would like to suggest using Inset[] to
put more than one object into a graphic.
For example:

Plot[-10, {x, 0, 1}, AspectRatio -> Height/Width, Axes -> False,
 PlotRange -> {{-1, 1}, {-1, 1}}, Frame -> True, FrameTicks -> None,
 Epilog -> {Inset[Plot1, {0,0}]}]

This creates a white background and puts the plot Plot1 in the middle
of this. With additional Inset commands it is possible to place as
many objects as desired at given coordinates.
This is certainley not used as intended, but so far works perfectly
for me.


[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web