Search found 8 matches

by qubyte
Tue Mar 01, 2011 9:04 am
Forum: Graphics, Figures & Tables
Topic: Can you embed graphics in LaTeX code?
Replies: 5
Views: 5946

Can you embed graphics in LaTeX code?

If it's a pure vector eps (and not simply a wrapper for a raster image) then you're in good shape. Check out ps2pgf:

http://sourceforge.net/projects/eps2pgf/

You'll be able to put the contents of the file generated into your tex source file. Be warned though, depending on how complex the graphic ...
by qubyte
Mon Feb 28, 2011 11:28 am
Forum: Graphics, Figures & Tables
Topic: Can you embed graphics in LaTeX code?
Replies: 5
Views: 5946

Re: Can you embed graphics in LaTeX code?

Another vote for TikZ, so long as you're drawing something like a diagram. It is also possible to convert other (pure) vector graphics into pgf or TikZ code which can be embedded in a LaTeX document. I think you can probably arrange that as a pipe, but you'll lose stuff like blends.

If you're ...
by qubyte
Thu Feb 10, 2011 7:54 am
Forum: Graphics, Figures & Tables
Topic: Avoid png resampling by pdfLaTeX
Replies: 8
Views: 4310

Re: Avoid png resampling by pdfLaTeX

Ok, so I just took a look at this again, and it turns out there was a problem, just not where I was looking.

The problem is actually in Preview in OSX. It displays the png files properly, but with pdf files it interpolates for no reason. Opening this up in Acrobat Reader revealed that the pdf files ...
by qubyte
Mon Jan 31, 2011 10:21 am
Forum: Graphics, Figures & Tables
Topic: Avoid png resampling by pdfLaTeX
Replies: 8
Views: 4310

Re: Avoid png resampling by pdfLaTeX

This is not a solution. The problem remains open; I've simply demonstrated what I'm doing and why it is important.

I read the board rules before posting. ;)

Cheers
by qubyte
Wed Jan 26, 2011 6:27 pm
Forum: Graphics, Figures & Tables
Topic: Avoid png resampling by pdfLaTeX
Replies: 8
Views: 4310

Re: Avoid png resampling by pdfLaTeX

This is why I'm using pgfplots to contain the bitmap. Then I get all the vector graphic goodness from the box around the plot outwards. The best of both worlds! :)

I've attached an example pdf of what comes out of this arrangement. Using a vector version of the pseudo colour plot would have ...
by qubyte
Wed Jan 26, 2011 6:11 pm
Forum: Graphics, Figures & Tables
Topic: Avoid png resampling by pdfLaTeX
Replies: 8
Views: 4310

Avoid png resampling by pdfLaTeX

Ah, you see, normally I'm a vector graphic purist. However, this is one of the few cases when a raster graphic is better . The bitmap contains exactly the right information, and a vector graphic version is only going to be bloated and scrolling the resultant pdf will be laggy. No, I want this to be ...
by qubyte
Wed Jan 26, 2011 3:49 pm
Forum: Graphics, Figures & Tables
Topic: Avoid png resampling by pdfLaTeX
Replies: 8
Views: 4310

Re: Avoid png resampling by pdfLaTeX

I'm using Matlab for this, and it seems not without the same thing happening. Even if I could, I need to crop the output to get rid of whitespace and this is only practical with a bitmap as far as I know. I guess fiddling around with the bounding box of an eps is an option if I could get a nice plot ...
by qubyte
Wed Jan 26, 2011 3:31 pm
Forum: Graphics, Figures & Tables
Topic: Avoid png resampling by pdfLaTeX
Replies: 8
Views: 4310

Avoid png resampling by pdfLaTeX

Hello all. This is my first post so I hope I'm not going to ask something stupid.

I have some code that is generating bitmaps for me (pseudocolor plots), and I'm using pgfplots to wrap the bitmap portion in nice axes etc. These bitmaps that I'm producing are saved as png files so that they don't ...