Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dashed line in psplot #34

Open
pieffebi opened this issue Dec 28, 2020 · 0 comments
Open

dashed line in psplot #34

pieffebi opened this issue Dec 28, 2020 · 0 comments

Comments

@pieffebi
Copy link

Hi,
your project is awesome!

However it seems to me that some line styles do not work as expected (or, at least, as they work in LaTeX).

I tried the same code in latex and in latex2js

\begin{pspicture}(-0.5,-0.5)(3.5,3.5)
\psplot[algebraic,linecolor=red,linewidth=3pt,linestyle=dashed]{0.}{3}{x**2/3}
\psaxes[labels=none,ticks=none]{->}(0,0)(3,3)
\psline[linewidth=2pt,dash=3pt 5pt,linestyle=dashed](0,0)(3,3)
\end{pspicture}

Actually, almost the same code: in latex the exponent is "^" rather than "**".
I attached the results below. The first image is obtained with LaTeX. All dashing styles behave as expected.
The second image is web rendering by latex2js. The parabolic curve is not dashed, and the straight line ignores the dashing parameters "dash = ...".
I tried tinkering with plotpoints, to no avail.

I looked into the examples here and here but I could not find any with a dashed or dotted curve, so I started to think that the dashing of curves has not been implemented in latex2js. On the other hand, it seems to be a pretty basic feature (in latex you only need pstricks and pst-plot).

I hope I did not miss anything macroscopic.

latex
latex2js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant