1
vote
2answers
41 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
91 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
51 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
65 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
27 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
153 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 : ...
2
votes
1answer
58 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
27 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
57 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
46 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
88 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
69 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
56 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
142 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
142 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
326 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} ...
5
votes
1answer
186 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
402 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
115 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
141 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
103 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. ...
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
145 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
69 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
205 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
57 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
214 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
70 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 ...
1
vote
2answers
41 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
339 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 ...
4
votes
1answer
290 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 ...
7
votes
1answer
334 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
0answers
231 views

pslegend bounding box odd while using Cirkuit

This question is regarding pst-plot and more specifically \pslegend. The code below produces the two following plots: One of these figures is generated without the \pslegend and it appears to have ...
4
votes
1answer
285 views

Differing left and right axis labels in psplot

This question is related to psgraph with y-axis on left and right of graph and axis labels but can stand alone, as it is really about loops and variables. I'm really sad that I have to ask this ...
3
votes
1answer
411 views

psgraph with y-axis on left and right of graph and axis labels

I'm attempting to plot two quantities on one graph each with their own vertical axis. I've got as far as the MWE below but am stuck on two problems. Can I make the right hand axis have the same line ...
10
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, ...