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

learn more… | top users | synonyms

4
votes
1answer
41 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
91 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
44 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 ...
2
votes
2answers
74 views

How to make the main ticks of \psgraph get aligned with the main grids of \psgrid?

How to make the main ticks of \psgraph get aligned with the main grids of \psgrid? \documentclass[pstricks,border=0bp,12pt,dvipsnames]{standalone} \usepackage{pst-plot} \usepackage[nomessages]{fp} ...
2
votes
1answer
54 views

What causes \psxTick to no longer work? [closed]

I am using the latest pst-plot. When compiling the following, I got some errors as follows. MWE \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} \psset { ...
11
votes
4answers
2k views

How to plot atan(x), sqrt(x) using PSTricks?

For example, this code works: \documentclass{minimal} \usepackage{pstricks} \usepackage{pst-plot} \begin{document} \begin{pspicture}(-5,-5)(5,5) \psgrid[griddots=10,gridlabels=0pt, subgriddiv=0, ...
3
votes
2answers
58 views

How to move one y label to the right

As you see the image below, the label "4" on y-axis gets in the way with the plot. How do I move it to the right? I tried adding the following statement: psyTick[ylabelPos=right](4){4} But ...
6
votes
3answers
101 views

How can I use \psgraph with polar axes?

With pspicture \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} \psset{axesstyle=polar,plotpoints=100} \begin{document} \begin{pspicture}(-4,-4)(4,4) ...
3
votes
3answers
55 views

pst-plots not displaying negative exponents

I am trying to graph a piecewise function, with one component using negative exponents. However, pst-plots doesn't seem to understand the negative exponent. I've tried expressing it a few different ...
52
votes
11answers
2k views

How can I define a mathematical function as a LaTeX macro?

I am attempting to create a usable function within LaTeX such that its inputs are transformed mathematically. However, I cannot find any documentation that can perform such mathematical function ...
2
votes
1answer
69 views

Decimal separator in \psaxes of pstricks-add

When I use the comma option of the command \psaxes, only the y-coordinates are displayed with a comma while the x-coordinates are still displayed with a dot. My figure is included in a somewhat big ...
3
votes
1answer
31 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
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 : ...
7
votes
2answers
168 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 : ...
4
votes
2answers
203 views

Plotting 3D polyhedra, which package?

I have been using TikZ a lot but only for 2D plots. I was hoping I could use the 3D package for plotting regions on the (x,y,z) plane given by linear inequalities (currently I'm using Mathematica for ...
2
votes
1answer
61 views

listplot and (0,0)

Look at the following minimal working example. I cannot understand, why the first line of listplot is plotted from (0,0) to the first data of the input file. I am compiling with % converting with ...
2
votes
1answer
62 views

A little problem with pst-plot [duplicate]

I am getting error with this code: \documentclass[12pt]{article} \usepackage{ucs} \usepackage[utf8x]{inputenc} \usepackage[ukrainian]{babel} \usepackage{fontenc} \usepackage{inputenc} ...
1
vote
1answer
29 views

Psplot position on page

How can i move \psplot on custom position without pstpicture? \psset{yunit=28pt,xunit=28pt} \psplot[algebraic=true,linewidth=1pt,plotpoints=500]{0}{4.7}{(-x/5)*cos(4*x)} ...
7
votes
1answer
342 views

Custom style for \listplot or \dataplot

Is it possible to make custom style for \listplot and friends? By default they support only plotstyle=curve, line, bezier, and I need to use bspline from pst-bspline package. ...
3
votes
1answer
72 views

Removing unwanted lines and iterative plot

I am trying to plot a couple of streamlines over a circle, defined as x^2 + y^2 - 4, so the radius is 2. I am trying plot using a function, specifically using PSTricks. However, I keep getting extra ...
1
vote
1answer
47 views

I am using the package ps-plot and a file that used to compile no longer compiles

I am using the package ps-plot and a file that used to compile no longer compiles. The error I get says No room for a new \dimen \ch@ck …\else \ermessage {No room for a new #3}\fi Please help! I need ...
3
votes
1answer
214 views

Redefining axes label in pst-plot

I am trying to redefine the labels for x-axis in a pst-plot diagram by putting \makeatletter \def\ps@@@hlabel#1{\small(#1)} \makeatother in the preamble (see top of page 25 in the manual) but then ...
4
votes
1answer
92 views

How to use PostScript for to plot the sum of cos(n*x) for n=0 to n=100?

I want to plot the function f(x) which is the sum of cos(n*x) for n=0 to n=100. The domain is from 0 to 2π. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} \begin{document} ...
4
votes
1answer
57 views

How do I ignore lines to points with y=0 using pst-plot and a logarithmic y-scale?

I am using pst-plot to visualize data sets in linear x and logarithmic y scale. The data set should be plotted by connecting all points with a solid line style. This all works fine by using ...
2
votes
2answers
170 views

How to change the label color of \psaxes?

\documentclass[pstricks,border=12pt,12pt]{standalone} \usepackage{pst-plot} \begin{document} \begin{pspicture}(-5,-1)(5.5,5.5) ...
5
votes
1answer
144 views

Plotting graph and data with PSTricks: Wrong scaling

Consider the following code: \documentclass{article} \usepackage{pst-plot} \begin{document} % options \psset{ xunit = 5, yunit = 50 } % constants. \def\masse{0.183276667} % kg ...
6
votes
1answer
331 views

Plot functions and data together using PSTricks

I would like to create the following graph using PSTricks: The data, which can be downloaded from http://gupl.dk/705644/, should be plotted together with the three graphs. I have managed to plot ...
4
votes
2answers
129 views

How can I get correct picture?

I used Geogebra to draw the graph of the function $y = 2x^2 - 4x$. This is my code \documentclass[10pt]{article} \usepackage{pstricks-add} \pagestyle{empty} \begin{document} ...
3
votes
1answer
58 views

The actual source of pst-plot?

In the comment to answer to his question Labels with \psplot Svend Tveskæg writes: The newest version of pst-plot can be found at http://texnik.dante.de/tex/generic/pst-plot/pst-plot.tex. Is it the ...
3
votes
1answer
92 views

Labels with \psplot

Consider the following example: \documentclass{article} \usepackage{pst-plot} \begin{document} \begin{figure} \def\dx{2.5} \def\dy{1} \makeatletter ...
5
votes
1answer
201 views

Wrong axes in PSTricks figure using \psaxes

Consider the following example: \documentclass{article} \usepackage{pstricks-add} \begin{document} \begin{figure} \centering \begin{pspicture}(-0.8,-0.8)(6.3,6.3) \psaxes[ dx = 1.25, ...
13
votes
0answers
424 views

Are there any other methods left to create a spiral of equidistant segments?

I want to create a spiral that is composed of equidistant segments as shown in the following figure. I tried to draw it with various methods. The colors are used to distinguish each method from the ...
5
votes
2answers
117 views

How to buffer the extreme value of f(x) to draw a line representing a range of f(x)?

Please consider the following animation. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} \def\f{x^2-x-6} \psset{unit=3,algebraic} \def\Atom#1{% ...
8
votes
2answers
146 views

How to change \psaxes angle to match with data?

I'm able to draw radar chart using tex code mentioned below: \documentclass[landscape,a3paper,11pt]{article} \usepackage{pstricks-add} \usepackage{pgfplots, pgfplotstable} \begin{document} ...
5
votes
2answers
106 views

What is the correct RPN expression of a piecewise-defined function passed to \psplot?

My objective is to pass a piecewise-defined function in RPN to \psplot. The complete code is given as follows. The function is sin x for x<0 and cos x for other x. ...
4
votes
2answers
81 views

pst-plot: x-y-data from different files

How do I plot with pst-plot when the x- and y- data are stored in different files? \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage{pst-plot} \usepackage{auto-pst-pdf} ...
3
votes
1answer
69 views

How to change label numbers : polarplots

As per answer received in previous post, i'm able to draw graph mentioned below using tex file : \documentclass[11pt,a4paper]{article} \addtolength{\textheight}{1.1cm} ...
6
votes
2answers
157 views

Getting “Dimension too large” using psgraph and listplot

I am trying to setup a chart. Sometimes the y-Axis Value range gets a little narrow. And in one of those cases I ran into the infamous "Dimension too large" error as seen below. How can I circumvent ...
5
votes
1answer
48 views

Adding buffer to 1D coordinate

I have the following MWE \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-node, pst-plot} \psset{unit=0.1cm} \begin{document} \begin{pspicture}[showgrid=false](-3.0, -25)(110, ...
5
votes
1answer
107 views

making an inset with PSTricks

I have a main coordinate system, and inside this I would like to plot some data in an inset. Here is my MWE: \documentclass[pstricks,border=16pt]{standalone} \usepackage{pst-node, pst-coil, pst-plot} ...
0
votes
1answer
71 views

How to make a radian argument still get interpreted in radian when working with \psplot in PostScript form?

When using \psplot in PS form (or algebraic=false) the interval must be specified in degrees. However, sometimes, I need algebraic=false but interval is given in radian. Is it possible to achieve this ...
2
votes
1answer
58 views

Missing data points in PSTricks plot

Consider the following example: \documentclass{article} \usepackage{pst-plot} \begin{document} \psset{xunit=0.1,yunit=0.002} ...
2
votes
1answer
80 views

Label missing on axes in pspicture

Consider the following example: \documentclass{article} \usepackage{pst-plot} \begin{document} \psset{xunit=1cm,yunit=0.1cm} \savedata{\data}[{1,64},{2,32},{3,16},{4,8},{5,4},{6,2},{7,1}] ...
2
votes
1answer
224 views

Grid and tick marks in the same PSTricks picture

Consider the following example: \documentclass{article} \usepackage{pst-plot} \begin{document} \psset{ xunit=0.05, yunit=0.003, algebraic } \begin{pspicture}(-17,-140)(213,2540) % Axes ...
6
votes
1answer
74 views

Wrong x-axis with pst-plot

Consider the following example: \documentclass{article} \usepackage{pst-coil,pst-plot} \def\tilskud#1#2{% \psline[linewidth=1.5pt,linecolor=red]% (!#1 1986 sub 0)% (!#1 1986 sub #2 8 sub 2 ...
4
votes
1answer
291 views

The pst-plot package cannot be found

Consider the following (or any other compilable document): \documentclass{article} \usepackage{pst-plot} \begin{document} Test \end{document} If I compile using latex, I get the error ! LaTeX ...
4
votes
1answer
305 views

When should I use \psgraph instead of \pspicture plus \psaxes?

I am new to PSTricks and want to plot some functions. The documentation of pst-plot explains (but not detailed enough) both \psgraph environment and the combination of \pspicture and \psaxes. The ...
1
vote
2answers
42 views

How to use \Pnodecount when there are more than one \curvepnodes invocations?

Assume that there are 2 \curvepnodes macros invoked as follows. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-node,pst-plot} \begin{document} ...
1
vote
0answers
76 views

I get a bad result when creating my first simple image with PSTricks [duplicate]

I get a bad result when creating my first simple image with PSTricks. I get: 0 Errors, 2 Warnings but... bad results. What am I doing wrong? My files can be downloaded at ...
4
votes
1answer
347 views

How to set up psgraph to get the same output produced by pspicture plus psaxes?

In order to get a more balanced diagram (of a certain specified metric size, width times height), I usually also specify some offsets or adjustment values around the canvas (aka picture) and axes as ...