Skip to main content
14 votes
Accepted

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

\documentclass{article} \usepackage{pgfplots} \begin{document} \begin{center} \begin{tikzpicture}[scale=2] \begin{axis}[axis lines=middle] \addplot[smooth,domain=-4:-8/11,purple,very thick] {(x-2)/(...
JPi's user avatar
  • 13.7k
10 votes

Problem with pstricks in texlive 2021

Your example compiles fine with the following command in TeX Live 2021 xelatex -output-driver="xdvipdfmx -i dvipdfmx-unsafe.cfg -q -E" example
citsahcots's user avatar
  • 8,002
9 votes
Accepted

Phase Plane Plot using pst-ode

The right-hand side of the given system of ODEs dx/dt = x + y + x^2 + y^2 dy/dt = x − y − x^2 + y^2 translates into algebraic notation, used by \pstODEsolve as its last argument, as \def\odeRHS{ x[...
AlexG's user avatar
  • 55.4k
8 votes
Accepted

How to write Taylor's series of sinx in PSTricks?

I leave the simple color setting to you. It is much more easier to plot the function in pure PostScript code. Building a sum is then very easy: \documentclass[pstricks,border=12pt]{standalone} \...
user187802's user avatar
  • 17.4k
7 votes
Accepted

magnetic field with 2 coils

Something like this? It's made in 3d, with a macro for the coils, and it needs layers to fix the visibility and a couple of tikz styles (arrows, and borders in some lines). \documentclass[border=2mm]{...
Juan Castaño's user avatar
6 votes

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

A PSTricks answer for the PSTricks question. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} \def\f{(x-2)/(2*x+1)} \begin{document} \begin{pspicture}[algebraic](-4,-4)(6,5.5) ...
Display Name's user avatar
  • 47.2k
6 votes
Accepted

How to remove the origin label?

Set the showorigin key to false: \documentclass[12pt,pstricks,border=5pt]{standalone} \usepackage{pst-plot} \begin{document} \begin{pspicture}(-7,-1.5)(7,1.5) \psaxes[Dx=90,dx=\psPiH,xunit=\psPi,...
Phelype Oleinik's user avatar
6 votes
Accepted

Plot differential equation trajectories of a 3-system

ODEs can be numerically solved with package pst-ode (RKF45 method). The given equation is solved separately for the lower and for the upper half-spaces using initial conditions (1e-9, 0, -1) and (1e-9,...
AlexG's user avatar
  • 55.4k
5 votes

How to rename \pi as another value only for y axis without affecting \pi used in x axis?

I don't think there is (that is, I didn't find) a built-in way to do that. With etoolbox you can patch the code for the x and y labels to add arbitrary definitions: \usepackage{etoolbox} \...
Phelype Oleinik's user avatar
5 votes

Plotting of functions Using PSTricks

The option algebraic can be used to write normal expression. The option plotpoint can be used for better precision. ATAN is the name of the function in radian \documentclass[11pt]{article} \...
Manuel Cart's user avatar
4 votes
Accepted

Plotting a rectangular waveform with LaTeX

A PSTricks solution just for comparison purpose. \documentclass[pstricks,border=12pt,12pt]{standalone} \usepackage{pst-plot} \begin{document} \begin{pspicture}(-1,-1)(11.5,5.5) \psaxes[ticks=x,...
Display Name's user avatar
  • 47.2k
3 votes
Accepted

Last axis label is missing

If you slightly increase the maximum value of the y coordinate in \psaxes, it's OK. Maybe this comes from a rounding error. \psaxes[showorigin=true,xAxis=true,Dy=10,dy=25.6,Dx=32,Ox=-128](-128,-128)(-...
Bernard's user avatar
  • 273k
3 votes

How to raster area bounded by two functions?

Generic Template Proposed features: functions are defined globally so you can change easily. intersection points are calculated at "runtime" as opposed to statically hard coded. \documentclass[...
Display Name's user avatar
  • 47.2k
3 votes

Plotting a rectangular waveform with LaTeX

A simple approach using TikZ. \documentclass[border=3.14mm]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \def\x{1} % replace 1 with desired value here \draw[-latex] (...
nidhin's user avatar
  • 7,962
3 votes
Accepted

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

The best way to explain is showing the animations, right? With curve plotstyle It needs at least 3 points. When N=2 there is no graph. \documentclass[12pt,pstricks]{standalone} \usepackage{pst-plot}...
Display Name's user avatar
  • 47.2k
3 votes
Accepted

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[Dx=90,dx=\psPiH,xunit=\psPi,xlabelFactor={}^\circ]{->}(0,0)(-2....
Display Name's user avatar
  • 47.2k

Only top scored, non community-wiki answers of a minimum length are eligible