Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pst-plot]

{pst-plot} is about a PSTricks package addressing issues related to a high-level interface for making {plots}.

0
votes
0answers
55 views

An error in pgf libraries after an update

I made an update in my miktex system today on windows 8.1, without saving the old one (which is a very bad idea, I know !). When I com[ile the following document: \documentclass[12pt]{book} \...
4
votes
1answer
59 views

How to change the axes label from radian to degree?

\documentclass[12pt,pstricks,border=5pt]{standalone} \usepackage{pst-plot} \begin{document} \begin{pspicture}(-7,-1.5)(7,1.5) \psaxes[trigLabels=true,trigLabelBase=2,dx=\psPiH,xunit=\psPi]{->}(0,0)...
2
votes
1answer
78 views

What is the equivalent of sin,cos in PSTricks?

\documentclass[tikz,border=5mm]{standalone} \begin{document} \begin{tikzpicture}[>=latex] \draw[gray,very thin] (0,-2) grid (8,2); \draw[thick] (0,0) sin (1,2) cos (2,0) sin (3,-2) cos (4,0) sin (5,...
3
votes
2answers
98 views

How to a point belong a function with animation?

\documentclass[pstricks,border=10pt]{standalone} \usepackage{pstricks-add,pst-plot,pst-calculate,amssymb,amsmath} \begin{document} \begin{pspicture}[algebraic](-4.5,-6)(1,2.5) \def\a{\pscalculate{8/3}...
5
votes
2answers
171 views

What is the difference between plotstyle=curve and plotpoints=1000?

The first code: \documentclass[pstricks]{standalone} \usepackage{pst-plot} \def\m{1/((x-1)^2)^(1/3)} \begin{document} \begin{pspicture}(-1,-1)(3.5,3.5) \psaxes[labelFontSize=\scriptstyle]{->}...
1
vote
2answers
158 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{<...
4
votes
3answers
198 views

Plotting a rectangular waveform with LaTeX

I need to plot a rectangular waveform with Latex. The main problem is how to make the height of the pulse "variable" not a "number" as you can see in the figure below. "x" here is some variable that ...
1
vote
1answer
65 views

How to plot cumulative frequency from a raw data file?

I have a raw data file that is simulated as follows. \begin{filecontents*}{raw.data} 0-2 3 2-4 4 4-6 8 6-8 20 8-10 20 10-12 15 12-14 14 14-16 ...
4
votes
2answers
237 views

How to raster area bounded by two functions?

This code works normally: \documentclass[pstricks]{standalone} \usepackage{pst-plot} %\usepackage{auto-pst-pdf}% only for pdflatex \begin{pspicture}[algebraic,linestyle=curve](-2,-6)(6,6) \psaxes{-&...
6
votes
3answers
798 views

Help! How to draw the plot of y=(ax+b)/(cx+d) and give an example!

I find in pst-plot.pdf, pst-func.pdf document but there is no its tutorial. So I hope anyone help me to draw the plot of it.(its code :-)) ). Thanks. Example: y=(x-2)/(2x+1) Can anyone draw it by ...
4
votes
1answer
74 views

I use PStricks to draw my picture but the curve is folded. Help me!

My code: \documentclass[12pt,a4paper]{article} \usepackage{fourier} \usepackage{amsmath,amssymb} \usepackage{pstricks} \usepackage{pst-func,pst-plot,pst-eucl,pstricks-add,pst-node,multido} \...
2
votes
1answer
75 views

How to make a number line with complete labels?

I don't really understand why there is always no zero sometimes I get incomplete labels at the ends How to make the number lines have complete labels? Case 1: Multiple of omega \documentclass[...
2
votes
1answer
61 views

How to remove the axis?

How to remove the black axes? \documentclass[pstricks,border=1cm,dvipsnames]{standalone} \usepackage{pst-plot} \newpsstyle{mygrid} { labels=none, subticks=5, tickcolor=Red, ...
3
votes
2answers
270 views

Calculating data inside pst-plot/postscript and conditionally coloring the plot

I am getting lots of simulated data in tables with 13 columns, from where I want to plot the following: The x axis should be column number 12 (E), which is fine with plotNoX=12. The y axis should be ...
2
votes
1answer
81 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 ...
3
votes
1answer
102 views

plot many lines

I have generated pstricks-code from data: \psset{unit=10cm} \begin{pspicture}(0,0)(1,1) \psline(0.22029880495812262,0.23497192515414284)(0.21975600857793104,0.23394684903842253) \psline(0....
2
votes
1answer
59 views

plot many polylines

I want to plot 82 polylines using pstricks. Do I really have to put every polyline into its own file and use 82 \fileplot-statements or is there a way to put them alltogether in one file and plot them ...
3
votes
2answers
100 views

Plot a function for a range of values

How do I use pspicture to plot the function y = a sin(bx) for a = 1,2,3,4 and b = 1,2,3,4 over -2π ≤ x ≤ 2π? I have tried the following code but it is very tedious. \documentclass[a4paper]{article} \...
1
vote
1answer
42 views

How to prevent \psaxes from inheriting the grid size of the containing \pspicture?

How to prevent \psaxes from inheriting the grid size of the containing \pspicture? \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} \begin{document} \begin{pspicture}[showgrid=...
2
votes
3answers
67 views

How to rename a dynamically created macro?

I can use \let to rename \curvepnodes to \ParametricNodes, \Pnodecount to \LastIndexP as follows. However, because \Pnodecount is generated dynamically inside \curvepnodes, I cannot move \let\...
2
votes
1answer
101 views

Strange behaviour drawing lines with multido and trigonometric functions

I'm trying to produce Taylor diagrams to compare statistically data sets. Here is the code as a first approach to such diagram. \begin{pspicture}(-1,-1)(5.75,5.75) \psaxes(0,0)(4,4) \begin{...
3
votes
1answer
122 views

pst-plot: overfull \hbox when using \psaxes

Consider the following example, taken from page 8 of the pst-plot manual: \documentclass{article} \usepackage[margin = 2cm]{geometry} \usepackage{pst-plot} \begin{document} \begin{pspicture}(-1.4,-...
6
votes
1answer
623 views

Phase Plane Plot using pst-ode

I am trying to incorporate the solution to the nonlinear differential equations x' = x + y + x^2 + y^2 y' = x - y - x^2 + y^2 The solution to these nonlinear differential equations were found ...
1
vote
0answers
35 views

listplot plotstyle=xvalues with vertical offset

I am using \listplot[plotstyle=xvalues,labelsep=2pt,fontscale=6,xunit=0.0101,decimals=0]{\easter} and want the xvalues offset vertically a little bit. How can I get that?
0
votes
1answer
92 views

Tikz patterns library and pst-plot

The following outputs a blank page: \documentclass[border=1cm]{standalone} \usepackage{tikz} \usetikzlibrary{patterns} \usepackage{pst-plot} \begin{document} \begin{tikzpicture} \draw[pattern=dots] (...
3
votes
1answer
46 views

Tweaking coordinate markers in pstricks

I have the following MWE \documentclass[pstricks,border=1pt, 10pt]{standalone} \usepackage{pstricks,pst-plot} \usepackage{pst-math} \usepackage{amsmath} \begin{document} \begin{psgraph}[axesstyle=...
5
votes
2answers
117 views

Plotting list of points while ignoring missing or infinite values

My question is closely related to this one, which has not been answered yet and might get more attention in this more general formulation. Suppose that a bunch of (abscissa, ordinate) points contains ...
3
votes
3answers
108 views

yLabels for negative values

When labeling an axis, it is possible to replace the labels with (for instance for y-axis) yLabels={<label-pattern>}. If I understand well, the given labels replace the otherwise numeric labels ...
4
votes
2answers
230 views

Polar coordinate axes

I am trying to create a set of polar coordinate axes using this code: \documentclass[pstricks,preview,margin=0pt]{standalone} \usepackage{pst-plot,graphicx} \begin{document} \psset{linecolor=black,...
0
votes
2answers
70 views

Last axis label is missing

I have the following PSTricks code: \documentclass[pstricks,preview,margin=0pt]{standalone} \usepackage{pst-plot,graphicx} \begin{document} \psset{linecolor=black,linewidth=1pt,arrowsize=8pt,unit=...
2
votes
0answers
283 views

Hide the x-axis, show the y-axis

I have the following axes code using PSTricks. \psaxes[Dy=25,dy=64,Dx=32,Ox=-128](-128,-128)(-128,-128)(128,128) How do I hide the x-axis but leave the y-axis remaining? Thanks.
3
votes
1answer
40 views

Differently scaled axes, but same physical size

I have the following PSTricks code: \documentclass[pstricks,preview,margin=0pt]{standalone} \usepackage{pst-plot,graphicx} \begin{document} \psset{linecolor=black,linewidth=1pt,arrowsize=8pt,unit=...
2
votes
1answer
76 views

Flip PSTricks axis labels upside-down?

In PSTricks, is there a way to flip the axis labels upside down? Or achieve the same effect by some other means? Thanks. [edit] Here's my document so far. I just need the numbers upside down. It is ...
1
vote
1answer
114 views

pstricks no ticks doesn't work

I want to remove the ticks in pstricks plot which does not work. I tried: \begin{pspicture} \psaxes[ticks=none](0,0)(-2,-2)(2,2) \end{pspicture} And got:
2
votes
1answer
43 views

PSTricks plots wrong

I want to plot a parabola and use therefore the following code: \usepackage{pst-plot} \usepackage{pst-math} %... \begin{pspicture}(-2,-3.5)(6,3) \psgrid[griddots=10,gridlabels=0pt,subgriddiv=0,...
1
vote
1answer
53 views

PSTtricks: Positioning axeslabels

I am trying to position my axes labels using PStricks, see this MWE: \documentclass[pstricks,border=60pt, 10pt]{standalone} \usepackage{pstricks,pst-plot} \usepackage{amsmath} \begin{document} \...
1
vote
1answer
34 views

PSTricks: y-axis spacing not consistent when 0.005

I am trying to make a graph where the y-axis starts at 0.99 and increments in steps of 0.005 to 1.001. Here is my MWE: \documentclass[pstricks,border=32pt, 10pt]{standalone} \usepackage{pstricks,pst-...
3
votes
2answers
110 views

Missing xLabels in psaxes

I am trying to display textual labels on my X axis, but they are missing: \begin{figure}[H] \begin{center} \psset{xunit=1.5,yunit=0.5} \begin{pspicture}(0,-11)(7,2) \psaxes[ticksize=0 5pt,Dy=2,Dx=1,...
1
vote
1answer
641 views

How can I define more color commands properly for \pslegend in pst-plot

I am plotting a multi-curve graph by using pst-plot, and naturally need different color to label each curve in legend, by using \pslegend command. However, I find I can only use a number of pre-...
2
votes
1answer
173 views

Draw coterminal rotation angles with pstricks

How draw the rotation of coterminal angles at 135 degree with pstricks, as a shown in figure.
3
votes
4answers
1k views

Drawing half a parabola using pstricks in LaTeX

I am trying to create some typed notes about Dynamical Systems, and as part of this I wish to draw a stability diagram; this requires me to have a parabola of the form $r = x^2$, however, one half of ...
2
votes
1answer
39 views

False .52 over x-axes in pspicture

I was trying to make a pspicture with custom labels on the x-axes. Unfortunately the value, I am trying to let the y-axes start with, is displayed above the x-axes. Does anybody know why? \...
3
votes
1answer
280 views

How to create dataplot with logarithmic y-axis in PSTricks?

I am trying to create some graph with a logarithmic y-axis in PSTricks. My Code Looks like this: \psset{xunit=0.5cm,yunit=2cm} \begin{pspicture}(-0.5,-17)(8,1) \readdata[ignoreLines=1]{\...
5
votes
1answer
146 views

Strange artifacts with pstricks plot

Consider the following MWE: \documentclass[border=5pt,pstricks]{standalone} \usepackage{pstricks,pst-plot,pst-math} \listfiles \begin{document} \psset{xunit=1.05cm,yunit=1.05cm} \begin{pspicture*}(-...
2
votes
1answer
104 views

I have an error when using pst-func package [duplicate]

when i use pspicture* to draw a chart this error occurs but plotted. file:framed.sty error:no room for a new \dimen.
3
votes
1answer
336 views

LaTeX Trellis Diagrams for STBCs

I recently had to draw multiple trellises for space-time block codes (first introduced in this paper; the open-access version is here). I'd like to share the code with you here, so that the work doesn'...
1
vote
2answers
188 views

Show y axis for psaxes starting from 130

I have a graph like this: However, when I plot it out on LaTex, it turns out like this: Here is the code: \begin{figure}[H] \centering \psset{xunit=0.13cm,yunit=0.5cm,algebraic=true,dimen=middle,...
4
votes
3answers
3k views

About \psplot and domain of functions

I would like to know if i really have to calculate the domain of functions like sqrt(x-7) and log(x-7)/log(2) and tell to \psplot to work only inside that interval, e.g., for the interval [6,16] and ...
1
vote
2answers
548 views

Draw a contour around the cylinder

I'm willing to draw a contour around a cylinder. So far, I could get this one: The problem is that half of the circular part of the contour should be at the back of the cylinder which is not the case ...
0
votes
0answers
105 views

Graph a function in TeXStudio [duplicate]

I want to know how do graph a vector field and a function in TeXStudio. So far, I have tried: \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} \psset{algebraic,plotpoints=300} ...