Questions tagged [pstricks-add]

drawing three dimensional objects

Filter by
Sorted by
Tagged with
4
votes
1answer
55 views

How to mark subticks at the end of a smooth curve?

\documentclass[border=10pt]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}[showgrid](-1,3)(2,7) \psparametricplot[algebraic]{-1}{1.56}{t|t^2+4}% \pscurvepoints{-1}{1.56}{t|t^...
9
votes
1answer
475 views

How to reproduce the following diagram with 3D packages in PSTricks?

I created the following diagram with pst-pers that I learnt from pstricks.blogspot.com. \documentclass[12pt,preview,border=15pt]{standalone} \usepackage{pstricks-add,pst-pers,vecteurs} \begin{...
3
votes
3answers
101 views

How to compact two the parabol commands in the following example?

\documentclass[border=15pt,pstricks,12pt]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}[showgrid](-3,-3)(3,3) \psframe[dimen=m](-3,-3)(3,3) %%% \psclip{\parabola(3,3)(0,0)}% ...
2
votes
1answer
72 views

How to use \psrotate?

\documentclass[pstricks,border=15pt]{standalone} \usepackage{pstricks-add,pst-eucl}% \begin{document} \begin{pspicture}[showgrid](0,-3)(8,4) \pnodes(3,3){A}(1,-1){B}(7,-1){C} \pstMiddleAB[PosAngle=...
2
votes
0answers
59 views

Problem with dotstyle=+

I'm using Overleaf with LaTeX compiler. I have the following code: \documentclass[pstricks,border=12pt,preview]{standalone} \begin{document} \begin{pspicture}[showgrid](0,0)(2,2)% \psdots[dotstyle=+...
3
votes
2answers
158 views

How to use \def command in \uput

\documentclass[12pt,border=5pt]{standalone} \usepackage{newcent,pstricks-add,multido} \usepackage{auto-pst-pdf} \begin{document} \begin{pspicture} \def\stuff1{Môi trường Vật lý} \def\stuff2{Sự lãng ...
1
vote
2answers
198 views

How to evaluate df(x)/dx at x=c rather than df(c)/dx when defining a reusable macro?

The following macros define \f[#1] and its derivative \fp[#1]. \def\f[#1]{((#1)*(#1-1)*(#1-2)*(#1-3)*(#1-5)/10+1.5)} \edef\fp[#1]{Derive(1,\f[#1])} Question I want to define a reusable macro \g{<...
2
votes
2answers
105 views

how to draw like the following picture ( use pairs \gsave…\grestore):

code: \begin{pspicture}[showgrid=true](-1,-1)(4,4) \psline{<->}(0,3)(0,0)(4,0) \pscustom[linewidth=1.5pt,linestyle=none]{ \psplot[plotstyle=curve]{.67}{4}{2 x div} \gsave \psline(4,3) \...
5
votes
1answer
87 views

How to draw closed path if used the following code:

An example in PSTricks User's Guide page 34. \begin{pspicture}[showgrid=true](-1,-1)(4,4) \pscustom[linewidth=2pt,fillstyle=solid,fillcolor=gray] { \pscurve(0,2)(1,2.5)(2,1.5)(4,3) \pscurve(4,1)(3,0....
2
votes
0answers
29 views

When I use \usepackage{pstricks-add} the vowels with accent are eliminated

I have typed this code: \documentclass[12pt]{report} \usepackage[spanish]{babel} \usepackage[utf8]{inputenc} \usepackage{amsfonts} \usepackage{amsmath} \usepackage{amsthm} \usepackage[all]{xy} \...
2
votes
1answer
122 views

PSTricks \psaxes— aligning minor horizontal grid lines

In the MWE below (a coordinate system having its first axis logarithmized), major and minor ticks misalign. I have tried to figure out which logic for I should apply for the yticksize=0 8 option, but ...
0
votes
1answer
180 views

Any idea to start drawing this dynamic figure? [duplicate]

I have not put the MWE because I don't know where to start and check for packages to do the job.
2
votes
1answer
66 views

On the other side of the curve

Using pstrick's \pspolylineticks, I would like to put my labels on the other side of the curve using PNormal with polar coordinates as in the example of the pstricks-add documentation. Adding 180 ...
2
votes
2answers
183 views

Rotate PSTricks Object: Label Positioning

Consider the following (non-minimal) example of a rotation of a quadrilateral around a point: \documentclass{article} \usepackage{pstricks-add} \usepackage{xfp} \begin{document} \def\Ax{-1} \def\...
0
votes
1answer
82 views

Working with big numbers pstricks

I'm trying to plot some functions, for this I'm using Geogebra for generating the graphics, the following is the generated code. \documentclass[10pt]{article} \usepackage{pstricks-add} \pagestyle{...
1
vote
1answer
130 views

Scaling when \input PSTricks figure

I made a PSTricks figure to represent some IPSec behavior, but when \include-ing it, I have a scaling problem. Here's what I produces. When compiling the separate file, everything is right, and all ...
16
votes
3answers
819 views

Drawing an animated circle in LaTeX

How can I draw an image like this in LaTeX? I want to show that I am drawing a circle. Here is what I have, but it does not work. \documentclass[pstricks,border=0pt]{standalone} \usepackage{pstricks-...
1
vote
2answers
246 views

Conditional preamble and pstricks problem \psTilt and \PstLightThreeDText

Look at the following MWE. \PassOptionsToPackage{export}{adjustbox} \documentclass{article} \usepackage{fancyvrb} \usepackage{graphicx} \usepackage{adjustbox} \newcounter{psextern} \makeatletter \...
3
votes
2answers
411 views

White background box for labels in \psaxes of pstricks

I want to create a coordinate place with \psgrid and \psaxes. I am using the labels of \psaxes and suppressing those of \psgrid. My issue is that the negative signs (for negative labels) tend to be ...
2
votes
1answer
174 views

Interferencs between PSTricks options

I'm making a building to explain the asymmetric encryption scheme to my students. I'm using pst-sigsys to designe the Block Diagram, and pstricks-add to draw the key : I had problems designing the ...
2
votes
1answer
118 views

pstricks-add: set seed for psRandom

The figure shown below contains "dots" scattered randomly using \psRandom from the pstricks-add package. I need the capability of regenerating the same pattern for several figures (and in time, gif ...
21
votes
4answers
1k views

Folium of Descartes

How to fill region on Folium of Descartes like this: Here is my codes: \documentclass[10pt]{article} \usepackage{pstricks-add} \usepackage{pst-func} \pagestyle{empty} \begin{document} \begin{...
4
votes
2answers
149 views

where can I find the detailed description of how to use \pstVerb and tx@addDict

I am drawing some setup using Pstricks and pst-optexp. I want to know what the following example means. Also I can't find a detailed description of how to use \pstVerb and tx@addDict. \multido{\i=0+...
1
vote
1answer
144 views

What causes the polar plot of an ellipse to look different from its parametric plot? [closed]

\documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \psset { urx=15pt, ury=15pt, llx=-5pt, lly=-5pt, xAxisLabel=$x$, yAxisLabel=$y$, algebraic, ...
1
vote
2answers
207 views

What causes my tangent and normal lines not to be visually perpendicular?

\documentclass[pstricks,border=12pt,dvipsnames]{standalone} \usepackage{pstricks-add} \usepackage[nomessages]{fp} \FPset\LabelBase{4} \FPeval\DeltaX{pi/LabelBase} \FPset\DeltaY{1} \FPeval\Left{0 -...
6
votes
1answer
112 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, ...
2
votes
1answer
98 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 ...
4
votes
2answers
219 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 \documentclass[...
5
votes
2answers
832 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 ...
8
votes
2answers
934 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 : I ...
2
votes
0answers
96 views

psmatrix error - Undefined control sequence [duplicate]

When executing the following code, I get the error: Undefined control sequence. <recently read> \c@lor@to@ps l.7 [name=A] 1 & [name=B] 8 \\[0pt] ? Here is the code: \documentclass{...
2
votes
2answers
345 views

Why doesn't PStricks put nodes where I want?

I was surprised when I saw this result! I want to put, starting from my lower left corner, a pink, a red, and a blue node, BUT I was surprised when I saw that the three nodes started from the upper ...
5
votes
3answers
6k views

how to resize easily a pstricks picture?

I test my figures in an standalone file, and when I obtain what I want, I pass to my main file with text. How can I do to adapt the size? Because, sometimes I want to put 3 images in a row and I ...
4
votes
2answers
267 views

How to use/define a customized parameter?

I´m generating any grpahs... and I´m playing with any linewidhts values so I would like to type on the beginning of the .TEX a line similar to width1=0.1cm width2=0.15cm width2=0.20cm to avoid ...
2
votes
2answers
2k views

Can't include pspicture code

I am trying to create a presentation using beamer. In my presentation I need to include a picture created by LaTeXDraw software. I pasted the code to draw the picture inside the frame, but it is not ...
12
votes
2answers
1k views

What is PostScript dictionary for? How to know whether or not I need it?

Consider the following code, \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \psset{linecolor=red} \pstVerb { /updateCP {2 copy CPy add /CPy ED CPx add /CPx ED} bind ...
7
votes
2answers
179 views

What causes two identical instances to produce different result?

\documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \pstVerb { /updateCP {2 copy CPy add /CPy ED CPx add /CPx ED} bind def /updateA {1 sub sqrt 1 exch atan Angles add /...
3
votes
2answers
109 views

Moving the common angle to \pstVerb produces incorrect result

Consider the following complete code first. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}(-5,-5)(5,5) \def\points{(0,0)(1,0)}% ...
4
votes
1answer
213 views

How to draw a line from the origin to the last point of \psrline?

Consider the following code to draw the Theodorus' spiral. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}[showgrid](-5,-5)(5,5) \...
3
votes
1answer
222 views

How to use \psVector as a replacement for \rlineto in drawing Theodorus' spiral?

Consider the following minimal working example. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}[showgrid](-5,-5)(5,5) \pscustom[...
3
votes
1answer
316 views

Improve ugly PSTricks code [closed]

Consider the following code: \documentclass{article} \usepackage{pstricks-add} \psset{unit = 0.47\psunit, fillstyle = solid} \begin{document} \begin{pspicture}(0.5,1)(25,12.7) \psframe(3,1)(10,10)...
1
vote
1answer
941 views

Colour gradient filling in PSTricks figure

Consider the following drawing: \documentclass[ a4paper, 12pt ]{article} \usepackage[utf8]{inputenc} \usepackage[ hmargin=2.4cm, vmargin=3cm ]{geometry} \usepackage{rotating} \usepackage{...
6
votes
1answer
167 views

Example from the pstricks-add manual not compiliing

Consider the following example (taken from p. 29 in the pstricks-add manual): \documentclass{article} \usepackage{pstricks-add} \begin{document} \begin{pspicture}(-1,-1)(8,8) \multido{\iA=1+1}{6}{%...
8
votes
2answers
455 views

Riemannian step functions with pst-func

I know from the pstricks-add manual, that I can get a vizualization of upper and lower sums for the Riemannian integral like this: \documentclass{standalone} \usepackage{auto-pst-pdf} \usepackage{...
5
votes
2answers
472 views

PSTricks: How to connect inside arrow heads on two different bezier curves?

I used \psbezier to draw a triangle with pushed-in edges: \begin{pspicture}(0,-1)(3,1) \psdot(0,0) \uput[180](0,0){$a$} \psdot(3,1) \uput[45](3,1){$c$} \psdot(3,-1) \uput[-45](3,-1){$b$} ...
3
votes
1answer
888 views

pstricks-add: arrow on arcs

In pstricks-add, the arrow tip -v does not rotate if it is put on an arc, while other arrow heads do it. \psarc{->}(0,0){1}{0}{30} \psarc{-v}(0,0){1}{0}{30} Note that along segments, the tip is ...
2
votes
1answer
200 views

PSTricks: Problem with pie chart coloring

This is more or less a follow-up question to the question PSTricks: ugly pie chart by PinkFloyd. Consider the following code: \documentclass{article} \usepackage{pstricks-add} \usepackage{siunitx} ...
3
votes
1answer
370 views

PSTricks: ugly pie chart

I use PSTricks to draw a pie chart but when I do \documentclass{article} \usepackage[pdf]{pstricks} \usepackage{pstricks-add} \begin{document} \titlepage \begin{pspicture}(-5,-5)(5,5) \psChart[...
3
votes
3answers
285 views

Error when using pschart with LaTeX

Consider the following example: \documentclass{article} \usepackage{auto-pst-pdf,pstricks-add} \usepackage{siunitx} \begin{document} \begin{figure} \centering \psset{ unit=4cm, nodesepA=...
2
votes
1answer
125 views

Some ticks get lost when increasing the domain, why?

\documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \psset{plotpoints=51} \begin{document} \multido{\iAngle=351+1}{10}{% \begin{pspicture}[showgrid](-4,-3)(4,3) \pstVerb { /...