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

0
votes
0answers
64 views

How to make this specific block in XeLaTeX

I want to do these "cards" using XeLaTeX. Concerning the above card, I would like to remove the heart, arrow, and action buttons. In other words, I would like to remove the action area 2. Also I ...
2
votes
0answers
25 views

How to customize a lens of pst-optic with the following requirement?

The following code \documentclass[pstricks,border=12pt,12pt]{standalone} \usepackage{pst-optic} \begin{document} \lens [ nameF=F2, nameFi=F1, spotO=270, focus=4, OA=-3, AB=1, ...
6
votes
1answer
401 views

Drawing coaxial cables: TikZ or pstricks

I want to draw this. I don't find any way to do I can draw some things... but it's so bad! and it's not realistic! please HELP... \begin{document} \newcommand\innenleiter[3]{% ...
1
vote
1answer
24 views

Wrong scaling of data in PSTricks plot

Consider the following: \documentclass{article} \usepackage{pst-coil,pstricks-add} \usepackage{siunitx} \DeclareSIUnit[mode = text]\kroner{kr.} \begin{document} \begin{figure} ...
2
votes
1answer
59 views

How to animate a sine curve in PStricks/Tikz

I would like to know how to set up an animations which consists of two "sub-animations" side by side or above/below, wherein one animation just shows a real number line from say zero to 2 pi one and ...
3
votes
1answer
111 views

How to draw lettering on tile or ceramic in LaTeX

I know that LaTeX is able to do incredible things. I want to know how to achieve something like this: I need to draw an oval placard such as: But I have not idea how to do it. I'm not asking for ...
3
votes
1answer
54 views

Boxplot with PSTricks

Consider the following: \documentclass{article} \usepackage{pst-plot} \begin{document} \begin{figure} \savedata{\data}[172 173 184 160 183 188 176 179 176 180 184 173 182 174 177] \psset{xunit = ...
2
votes
1answer
35 views

Treating psTree object as a figure

I created the following probability tree diagram using psTree then running XeLaTeX in texmaker. \documentclass[12pt]{article} \usepackage{graphics,graphicx} \usepackage{pstricks,pst-node,pst-tree} ...
3
votes
1answer
68 views

Writing to files through postscript via pstricks

I want to use file operations in postscript: right now I need them to print large debugging data, which otherwise I have to copy and paste from the standard output. More importantly, in the future, I ...
3
votes
1answer
31 views

Unexpected result when converting image from DVI to EPS

This question follows on from a prior question but is separate and can stand alone. The prior question is at pst-plot graph offset on page when graph has non-zero origin. This question is related to ...
2
votes
1answer
31 views

Xelatex has problem in generating pstricks tex file with colors [duplicate]

I have a piece of simple tex code which compiles on all of my computers. But it doesn't show properly on my laptop \documentclass{standalone} \usepackage{pstricks-add} \psset{gridcolor=green, ...
2
votes
1answer
38 views

Pstricks flowchart does not diplays properly

I am trying to build a flow chart using pstricks, the code is below. But when I compile it the resulting PDF does not display the flowchart, in place, it looks like if all the information is ...
3
votes
2answers
47 views

pst-plot graph offset on page when graph has non-zero origin

This question relates to the use of pst-plot with datasets that have x axis values starting from a positive number for example x = 0.5 -> 0.8. In the case below, on two separate computers both ...
1
vote
2answers
59 views

XeLaTeX and pst-node

I have problems with XeLaTeX and pst-node: If I want to draw a line between two nodes, but there is nothing drawn in the pspicture. If I only put the nodes with some stuff withoud a line in, the nodes ...
3
votes
1answer
50 views

Drawing an off-axis parabolic mirror in pst-optexp and pst-optic

Having looked through the pst-optexp manual, it doesn't seem that there is a built-in off-axis parabolic mirror. I'm trying to make a diagram of a lab setup that goes like this: Collimated beam ...
4
votes
1answer
104 views

PSTricks 3D drawing — tweaking of parameters

Consider the following code: \documentclass{article} \usepackage{pst-solides3d} \begin{document} \psset{viewpoint = 15 -30 11, Decran = 10} \begin{pspicture}[solidmemory](-8.25,-1)(5.3,2.05) ...
15
votes
2answers
565 views

Automatically generate graphics which shows light diffusion on a rough surface

I just want to make an image like this (using tikz or pstricks) of light reflexion and diffusion: What I am interested in is, how this can be done (semi)-automatically via tikz or pstricks: ...
4
votes
1answer
76 views

Conversion from pstricks coordinates to postscript coordinates

I am making a custom graphics library on top of pstricks and I need to convert from pstricks coordinates to postscript coordinates. I have a "working" example, cooked up via painful trial-and-error ...
1
vote
0answers
55 views

How to plot a diamond shape ball in LATEX [closed]

Let d:M \to \mathbb{R} be defined by d(X,Y)=|x_1-y_1|+|x_2-y_2| where X=(x_1,x_2), Y=(y_1,y_2) \in \mathbb{R}^2. This is called the Manhattan metric. Plot the unit open ball B with center at the point ...
2
votes
0answers
34 views

Have auto-pst-pdf and pstool merged?

auto-pst-pdf can handle pstricks and psfrag in addition to .eps files when run with pdflatex. It is however slow since in each run it processes all files, even those that have been processes before ...
2
votes
1answer
79 views

How to embed all fonts with pdfLaTeX in combination with pstricks and auto-pst-pdf

The publisher of my thesis asked me to provide a pdf file that meets two conditions: (1) The pdf file must NOT be created with Ghostscript. (2) All fonts must be embedded in the final pdf file. To ...
1
vote
1answer
55 views

How to add two lines for \rput in radar chart

I'm able to draw radar chart using code mentioned below: \begin{center} \begin{pspicture}(-4,-4)(4,4) \psset{unit=1.2} \degrees[270] ...
1
vote
1answer
37 views

PSTricks compilation problem

The following problems occurred a week ago. Everything was fine before and the TeX file does compile on my friends computer but does not compile anymore on mine. When I compile my TeX file I get ...
4
votes
3answers
155 views

Like to know how my code can be improved!

I would like to know better way of accomplishing the following figure than the code I used. I'm used to for loops, but not to LaTeX loops! THE CODE ...
5
votes
1answer
151 views

How can I draw this radar graph in LaTeX?

when I enter below code: \rput*[l]{15}(20;15){\huge3} \rput*{60}(20;15){\huge1} \rput*[r]{105}(20;15){\huge3} \rput*[r]{160}(20;15){\huge1} \rput*[r]{205}(20;15){\huge28} ...
4
votes
3answers
53 views

Unable to get required Orientation of arrow

The circle is divided into 8 equal parts and a horizontal and vertical arrow has to be put at the midpoint of each division. On the right half, the horizontal arrows are directed to right side. On ...
4
votes
3answers
244 views

Using pstricks, I need to created the following grid sheet, which fits well with A4 paper

Distance between any adjacent horizontal lines or adjacent vertical lines is 10 mm. The 2 vertical border lines are 1.0pt thick. The 18 vertical lines are 0.1pt thick. The 2 horizontal border ...
3
votes
0answers
27 views

pstricks: strange behaviour using \rput* with pst-solides3d

i got a strange behaviour using \rput and \rput* with the package pst-solides3d. it concern more or less the commands \rput and \psdot in the following example \documentclass{minimal} ...
0
votes
1answer
113 views

Chart or diagram for this figure

How could I create this table or diagram, I appreciate the help.
5
votes
1answer
168 views

Convert PSTricks to TikZ

I use pstricks for all my graphics. Now I am submitting a paper to a conference which, unfortunately, does not allow to use PostScript. I have to send them tex source, which they compile with ...
5
votes
2answers
54 views

PSTricks rotation driven by auto-pst-pdf

This looks like the same problem as that one tackled in PSTricks figure turned 90 degrees, only with some twist. The following MWE does not give the rotation: \documentclass{memoir} ...
0
votes
0answers
98 views

Cartesian Coordinate System In TikZ VS Pstricks

I have been using pstricks to add cartesian coordinates to my exam document class structures for years. But, now I have switched to a Macbook air and I am using Texpad. The newsiest version of Texpad ...
3
votes
0answers
31 views

Shortening compile time with large eps files when using pstricks and dvips

So I am also sending this to both the pstricks and the powerdot lists as it relates to both, but mostly to compiling via dvi-> dvips -< ps2pdf or similar. I make my lecture slides with Powerdot ...
6
votes
3answers
402 views

How to fill an annulus (region bounded by two concentric circles)?

How to color with green color the domain bounded by a circle of radius 1.5 and the circle of radius 3.5 ? How to color with yellow color the domain bounded by a circle of radius 3.5 and the circle of ...
1
vote
0answers
181 views

What about Kuvio for making diagrams? [on hold]

Kuvio (Finnish for 'pattern') seems to be a very general tool for diagram making. Which are the major disadvantages? Why isn't it used more often (only one Q/A on the site seems to mention it)? Can ...
2
votes
0answers
26 views

Looking for explanation of pstricks measurement units [duplicate]

I am looking for explanation of how pstricks deals with measurement units. I am trying to write my custom postscript-only drawing commands, to be used within the \pspicture environment. For ...
7
votes
1answer
93 views

Error in PSTricks package — trailing space again?

This question is similar to Error in the PSTricks package pst-poly?. Consider the following example: \documentclass{article} \usepackage{pst-grad,pstricks-add} \newcommand*\PolyLine{% ...
5
votes
1answer
122 views

Compile Error: lualatex with PSTricks

I compile the file below with lualatex --shell-escape but I get the error : ! Undefined control sequence. l.14 \savedata ...
2
votes
1answer
92 views

How to change vertical and horizontal unit based on a fraction of width and height of an image?

I have to overlay some texts on a PDF form. As converting the PDF form to EPS with pdftops produces unsatisfying result, I will not use PSTricks code below. ...
7
votes
1answer
78 views

Error in the PSTricks package pst-poly?

Consider the following example: \documentclass{article} \usepackage{pst-poly} \begin{document} \begin{figure} \def\sidelaengde{5 } \def\myCoor{} \centering \psset{unit = 0.4} ...
2
votes
1answer
45 views

Why no line drawn when use dot with psmatrix?

I am trying to draw a signal flow graph with \psmatrix where each node is just a dot. However \ncline does not seem to work when mnode is set to dot $ \psmatrix[colsep=1cm,rowsep=1cm,mnode=dot] ...
3
votes
1answer
36 views

What option suppresses axes, ticks and labels in gridIIID?

I am interested in using the \gridIIID command but I don't want the box to have ticks, labels or axes I found the following line in the changelog: 4.20 2010-07-23 - activate keyword planmarks for ...
4
votes
1answer
90 views

How to get fractional labels with psaxes?

The objective is to get fractional labels (not in decimal) for both vertical and horizontal axes. In my experience, non-trigonometric labels are written in decimals and trigonometric labels can be ...
4
votes
2answers
105 views

How attach \circ to each horizontal labels representing angles?

The objective is to attach \circ to each horizontal labels representing angles in degrees. How to do so? I cannot find the solution in the pst-plot manual. ...
5
votes
1answer
79 views

How to use \psaxes with trigonometric labels of even multiples of π/3?

Constraints I only want to use \psaxes rather than multiple calls of \psxTick, \rput, \uput. I want to have trigonometric labels with even multiple of π/3. My attempts As usual, we can have ...
5
votes
1answer
43 views

Does the package pst-solides3d affect images made with pst-3dplot?

I am working in a simple project creating some 3D representations of math surfaces and shapes for a calculus course. Most of all the pictures I have created rely heavily on pst-3dplot. Once I found ...
2
votes
1answer
63 views

Is it possible to use \only to conditionally enable key-value pairs of a macro?

The following is a trivial example. What I want to learn is how to use \only<> (if possible) to conditionally enable key-value pairs of a macro. \documentclass{beamer} \usepackage{pstricks} ...
4
votes
1answer
70 views

PS-Tricks + Beamer Problem

I have a strange problem with PS-Tricks. I can only create one picture when using beamer. Take this as an example: \documentclass{beamer} \usepackage[pdf]{pstricks} \begin{document} \begin{frame} ...
4
votes
1answer
91 views

3d plot of a surface with nonrectangular domain

I need to make a 3D plot of a step function For example, suppose that I want to plot the function f:[0,1]x[0,1]->[0,1] given by: f(x,y) = 1 if x < y^2 and f(x,y) = 0 otherwise I would like to ...
3
votes
1answer
48 views

Axes in the foreground with PSTricks

With the code shown below, the grid is on the foreground (one can see red lines on the labels...): \documentclass[11pt]{article} \usepackage[letterpaper, textwidth=7in, textheight=9.5in]{geometry} ...