Tagged Questions

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

learn more… | top users | synonyms

3
votes
1answer
38 views

misaligned psplot psline in pstricks

I am trying to draw a figure using pstricks and pst-plot, compiling to a PDF with XeLaTeX. I find that lines drawn with the \psplot and \psline commands are horizontally displaced from where I want ...
3
votes
1answer
30 views

pst-plot and psgraph enviroment to small

I try to plot a large spectrum with pst-plot, but i cannot create a psgraph enviroment large enough, because the x-axis line is not drawn correctly. Do you know how to make it work? % !TeX program ...
1
vote
1answer
29 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} ...
3
votes
1answer
60 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 = ...
3
votes
2answers
51 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
0answers
83 views

radar graph in latex pleas help me

I want to delete dash line and change line that adjusted with my shape similar the below picture the code I use for drawing ...
4
votes
1answer
71 views

How can the last updated packages get propagated earlier than the first updated packages

I often experience the following phenomenon. For example, from texnik.dante.de/tex/generic I noticed that pst-plot gets updated on August 24, 2014 pst-poly gets updated on August 28, 2014 and ...
4
votes
1answer
101 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
108 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
102 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
1answer
61 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 { ...
3
votes
2answers
80 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 ...
2
votes
2answers
95 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} ...
6
votes
3answers
145 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
69 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 ...
2
votes
1answer
77 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
39 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
50 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
215 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
247 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
77 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 ...
1
vote
1answer
36 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)} ...
2
votes
1answer
87 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
56 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 ...
4
votes
1answer
105 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} ...
3
votes
1answer
82 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 ...
4
votes
1answer
61 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
339 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
166 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
350 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
136 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
105 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
269 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, ...
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 ...
13
votes
0answers
497 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
125 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
159 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
118 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
90 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
71 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
196 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
114 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
84 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 ...
3
votes
1answer
262 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 ...
2
votes
1answer
63 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
82 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
282 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
83 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 ...