Document Classes ⇒ pstricks figure distorted in GSview
pstricks figure distorted in GSview
I use GSview to see the PS output file. But strangely it distorts some figures, at some zoom factors, that I have drawn with pstricks. Refer the attached captured images, they are from the same file but when zoomed with different factors. I generate the PDF from this PS file so as a result the image in PDF is also distorted. As I understand pdflatex does not work when there are pstricks images in the file. Any tips on what I can do?
Thanks,
tsurreal
- Attachments
-
- This is how it looks at some zoom factors
- distorted.jpg (13.97 KiB) Viewed 4109 times
-
- This is how it should look
- correct.jpg (11.08 KiB) Viewed 4109 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
pstricks figure distorted in GSview
could it be possible for you to attach the actual offending code? Maybe an option could be to use the pst-pdf or pdftricks packages to generate directly a PDF document including your PSTricks diagram.
Re: pstricks figure distorted in GSview
- tsurreal
- Attachments
-
- pstrickstest.tex
- (2.51 KiB) Downloaded 322 times
pstricks figure distorted in GSview
it seems to me that the problem was caused by some of the definitions of your diagram and not by the viewers used. I slightly modified a portion of your code to
Code: Select all
\pscustom[fillstyle=none,linecolor=gray,linewidth=0.2]
{
\pscurve[curvature=1 0.5 0]%
(4,4.29)(5,3.89)(6,3.7)(8,3.92)
} Edit: I was too hasty when I first replied. There's still some problem. With the modified code the resulting .dvi document is OK; once converted to a .ps file (DVItoPS), still there's no problem, but when I used PStoPDF to get a .pdf file, the gray stripe in your diagram appeared in the wrong position.
Hmmm. I will have to do some tests. Unfortunately, I can't do them right now, but once I have time I will try to figure out where the problem is.
Re: pstricks figure distorted in GSview
- tsurreal
pstricks figure distorted in GSview
Code: Select all
\pscustom[fillstyle=solid, fillcolor=Black, linewidth=0]
{
\psline(2,4)(2.25,4)
\pscurve[curvature=1 1 0]%
(2.25,4)
(6.0,3.4)
(9.75,4)
\psline(9.75,4)(10,4)
\psline(10,4)(10,4.2)
\psline(10,4.2)(9.75,4.2)
\pscurve[curvature=1 1 0]%
(9.75,4.2)
(6.0,3.6)
(2.25,4.2)
\psline(2.25,4.2)(2,4.2)
\psline(2,4.2)(2,4)
}