PSTricks is a set of macros that allow the inclusion of PostScript code (e.g. drawings) directly inside (La)TeX code. This tag is compatible with the tag {diagrams}.

learn more… | top users | synonyms

1
vote
1answer
44 views

Undo option in LatexDraw

The GUI LatexDraw for generating PStricks codes does not have "undo" option. What other better GUIs are available for generating PStricks codes? http://latexdraw.sourceforge.net/
3
votes
1answer
33 views

psgraph scale description doesn't work

I've got a small problem. I don't can set the right scale description. Please, have a look at this code: \def\data1{ % x (degree) % y1 % y2 0 8188 7538 15 9143 8464 30 9605 9075 45 9564 9277 60 ...
3
votes
2answers
103 views

Circuits with pst-circ package Latex

I would like make two resistance in series in this circuit. And just one capacitor in parallel with two resistance (Rct and Zw). \begin{pspicture}(12,12) \psgrid[subgriddiv=1,griddots=10] % Node ...
6
votes
2answers
199 views

How to conceive a macro for drawing a pie-chart circle of fifths?

I would like to re-write parts of the book mentioned below on historic tuning temperaments, and therefore I need to draw a circle of fifths, represented in the book by hand-drawn schemata like this: ...
14
votes
2answers
745 views

draw colored world/US map in LaTeX

I'm trying to draw maps similar to these in a LaTeX pdf document: I want to auto-generate them from a list of pairs (country,color) to determine the colors. I have found the package pst-map2dII ...
4
votes
1answer
140 views

pst-map2d - unrecoverable error

I am using this piece of code \documentclass{article} \usepackage{pst-map2d} \begin{document} {\psset{xunit=0.5, yunit =0.5} \begin{pspicture}*(-9,-9)(10 ,9) \WorldMap[maillage = false] ...
14
votes
1answer
484 views

Color gradient filling along a path

I want to make the gradient color to follow the pipe curve below rather than to span from the left to the right. The following MWE shows the default behavior which is not what I'm looking for. ...
3
votes
2answers
41 views

Invert Axis directions

I'm trying to invert the direction of the y-axis. I want to have 2 y-axis : the first going up (as usual) and the second, starting from 0 and going down (to 5)... Here's what I do : ...
2
votes
1answer
35 views

What´s the best/practical way to do trees with pstricks pictures in nodes?, with PSTricks, Pst-node

I have test that psmatrix is a good way to do diagrams, but ... to do diagrams where the nodes is not displayed as a "perfect matrix/table". What is the recommended way to do any similar to, with ps ...
5
votes
2answers
94 views

How to put a “coil” inside an ncline (between nodes)?, in PStricks

How to put a "coil" in an \ncline between nodes? similar to: I have viewed \pscoil and options as coilarm=0.5,.. but.... in \ncline or similars?, how? I have this code, for example ...
6
votes
1answer
65 views

Is possible give the handwrite aspect to other thing?, as ncline, rectangles,… in PStricks?

Viewing doc, I realized that there is an option (similar to linestyle=¿handwrited? ;-) ) to simulate handwriting. Is possible give this aspect to other elements as triangles, poligons, curves, ...
6
votes
5answers
535 views

How to plot a linear function with axes, arrows, and labels?

I have now spend hours by creating this figure - without luck. I have tried different types of tikz, pstricks and multido usepackages. The lines from a to x_2, d to x_1 and p_1 to c, should be ...
6
votes
2answers
56 views

How to change the orientation of a brace?, with psbrace, in PsTricks

I can´t believe it. I was looking and reading... the multiple examples in page 23 in pstricks-add-doc.pdf and I can´t reach what I want. Even copying and pasting any examples of the PDF I know how ...
1
vote
1answer
37 views

How to reescale a pstricks image with subcaption?

I have an image and a code, that works well. When I try to scale the PSTRickis image, I have problems-errors How can I resize an image using subcption package?? I put at the end of the code ...
4
votes
1answer
54 views

How to group many nodes? in pstricks

I have this code, and would like to know how to group many nodes. How to do it? I prefer grouping nodes calling nodes by name but... if it´s not possible, I was thinking about coding any similar ...
7
votes
2answers
266 views

Plot and imagesc (from Matlab) with PSTricks

I'd like to plot with PSTricks some data from Matlab. I usually plot these data using the imagesc and the colorbar in Matlab, but I'd rather do it in LaTeX... Here is the picture I want to plot in ...
5
votes
2answers
330 views

Using PSTricks with TeXmaker

I want to do some drawings using LaTeX. I use TeXmaker. What the commands that I need to set up to start using the PSTricks?
2
votes
4answers
1k views

PSTricks will not compile

\documentclass[12pt]{article} \usepackage[paperheight=9in,paperwidth=13.24in,margin=0in]{geometry} \usepackage{pstricks} \usepackage{graphicx} \begin{document} \thispagestyle{empty} \psset{unit=1in} ...
4
votes
2answers
89 views

Unable to get PSTricks to work as expected in Texmaker

I am trying to get PSTricks to work with PDFLaTeX in order to create scientific diagrams in the report I am producing. My document is currently as follows (I've included potentially extraneous ...
2
votes
2answers
316 views

Example from PSTricks manual not rendering

Can you set me straight in the very first attempt to use PSTricks drawing features please? The ultimate goal is to draw a triangle with the vertices angles marked on the inside with \alpha, \beta, and ...
2
votes
1answer
91 views

PSTricks Animation and dvips

I want to create animation in Beamer using the animate package. I easily created a basic example following the "all-in-one approach" from this older post but I can not use pdflatex to compile, which ...
7
votes
1answer
156 views

How to increase the accuracy of \psTangentLine?

I want to draw the tangent line as well as the normal line for an arbitrary curve as follows. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \begin{document} ...
4
votes
2answers
318 views

How to speed up rendering a PSTricks object with a custom fill

Because PSTricks does not provide us with dotted and x-like fill styles, I must create my own custom fill style using pst-fill package. However, the rendering is too slow and sometimes out of memory. ...
3
votes
2answers
2k views

EPS output from PSTricks

I am trying to produce an EPS file from a PSTricks code. I am reproducing here the sample working code that I already have here: PSTricks---plotstyle LSM (Least Square method) Here is the modified ...
7
votes
2answers
176 views

Problem Scaling Logarithmic function PSTricks

I'm trying to plot a function, but with the x-axis logarithmic. I use PSTricks and the package pstricks-addwith the algebraic option, to write my function litterally. My function to be plotted is : ...
20
votes
6answers
762 views

Generating Random arrows in tikz

I would like to draw this figure : Hence, I resort to TikZ. But, it seems to be very difficult drawing arrows precisely in TikZ with the precise locations (x,y). I have achieved this: Here is the ...
7
votes
1answer
116 views

How to write a LaTeX command that could discriminate if it's being called with pdfLaTeX in order to use PSTricks?

I'm writing a class for LaTeX, and I need to make it general. I want to include a simple image, a logo, within the class, which would be inserted into the document as a simple command ...
1
vote
1answer
99 views

A dotted circle: control size of dots and distance between them

My MWE is: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \draw[red,dotted] (0,0) circle (2); \draw[black,thick] (5,0) circle (2); ...
6
votes
3answers
292 views

Problem with \overlays

I latex the following tex. I got error in the line below \end{slide} as Undefined control sequence } I found out that the problem is related to \overlays. ...
1
vote
1answer
116 views

Compilation error after texlive update

I used to make animated pictures using pstricks and the beamer overlay syntax (eg. using \only<2>{<some pstricks code>}) with the standalone class. Here a MWE which did the work: ...
5
votes
3answers
81 views

Compilation fail standalone & pst-solides3d

I've got a PStricks schema made with both pst-solides3d and pst-3dplot, put (thanks to the standalone package) apart in a different file. The schema, when compiled itself, doesn't make any problems, ...
14
votes
2answers
643 views

Color gradient fill between three corners of a triangle

Updates Update1: Tried to implement solution by Harish Kumar (below) Update2: Added a real example of what I would like to get in the end. I have a feeling I tried to leave to many things out. ...
17
votes
2answers
2k views

How to make dominoes falling?

How to maker a LaTex drawing of dominoes falling as the following figure?
4
votes
1answer
133 views

Transmission grating in pst-optexp

It seems that transmission gratings have not been implemented yet in the pst-optexp. Does anyone know whether there exists a workaround?
76
votes
3answers
4k views

Fundamental differences : PSTricks, TikZ/PGF and others

OK, since this is a pretty vague and subjective question. I need to set up some borders around the discussion that I intend to benefit from. But before anything, I certainly do NOT want to excite the ...
4
votes
3answers
613 views

Curves with Latex

How I can draw curves as : Any help would be appreciated.
3
votes
2answers
60 views

Problem with PSTricks graph [duplicate]

I get the error: ! Undefined control sequence.<recently read> \c@lor@to@ps } when trying the following graph \documentclass[11pt]{article} \usepackage[usenames,dvipsnames]{pstricks} ...
3
votes
1answer
56 views

How can I delete the or3 and & notations from this and gate?

\documentclass{exam} \usepackage{pst-circ} \usepackage{multicol} \begin{document} \begin{pspicture}(-1,-1)(5,4) \logic[logicWidth=2,unit=0.5,logicHeight=4,logicNInput=3](-2,-2){or3} ...
5
votes
0answers
60 views

Problem layout pst-solides3d

I'm trying to have 2 cylinder pierce a parallelepiped, but I can't have the 2 cylinders properly drawed... Here is what I got : The two cylinders are within the box, and they pierce the yellow ...
4
votes
1answer
45 views

Vertical Text \pstPlanePut

I'm trying do write some vertical text, with the basis line parallel to the z-axis, in the xz-plane... Here is what I got, and I want the vertical text to be parallel to the z-axis. Is it possible ...
15
votes
3answers
815 views

Draw a 3D diamond structure

I want to draw a 3D diamond crystal structure. The point where I struggle is quite in the beginning to draw connecting 3D rods: \documentclass{article} \usepackage[utf8]{inputenc} ...
7
votes
0answers
454 views

best practice to include (standalone precompiled) graphics

General understanding I know that several people have asked about how to include plots and graphics (created by tikz and pstricks) into a latex document. What is the best way to include Matlab ...
5
votes
1answer
76 views

How to make PDF outputs of PSTricks rotatable on the PDF viewer as we can do on Asymptote's ones?

I just played with Asymptote outputs viewed on Adobe Reader and noticed the outputs can be zoomed, rotated, filtered which objects to be viewed, etc, etc. The following screenshot shows the features. ...
89
votes
8answers
8k views

Simulating hand-drawn lines

I am working on a project that will have some vector graphics, perhaps using TikZ (or a similar package). All of the graphics consists of lines, in shades of gray. However, the lines from TikZ appear ...
3
votes
1answer
57 views

What causes a custom path with linearc to have asymmetrical ripple?

The objective is to make the bottom of a bullet has rounded corners. What I don't understand are: Why does the ripple only occur on the bottom part but not on the top part even though the bottom one ...
41
votes
5answers
3k views

3D helix torus with hidden lines

How can I generate the above image using TikZ (possibly other methods will work if they produce better looking results)? I would like to have a nicely shaded (not so dark image) without gridlines ...
8
votes
2answers
271 views

Is it a bug in \psellipticarc or is my calculation wrong?

This question actually has a connection to my other question that was posted yesterday. The following figure illustrates the problem. Shortly speaking, the cyan dot must always coincide with the ...
3
votes
1answer
139 views

How to make \reversepath useful for drawing the following closed curve?

I want to draw a batman logo. As it is symmetric about the vertical line, it should be more convenient to just define the right part (or the left part) first and then reflect it to get the other part. ...
4
votes
1answer
36 views

How can I resize the and & or gates or FF in pst-circ package?

\documentclass{exam} \usepackage{pst-circ} \usepackage{multicol} \begin{document} \begin{latin} \begin{pspicture}(-1,-1)(5,4) ...
12
votes
2answers
3k views

PSTricks error “Undefined control sequence <recently read> \c@lor@to@ps”

I have a problem with this file tex: \begin{document} \begin{figure} \begin{center} \begin{pspicture}(0,0)(1,3.8) \psline{-<}(0,0)(0,.2) \psline{-}(0,.2)(0,.4) \psline{*->}(0,.4)(0,.9) ...