4

This are just my opinion. I have been using PSTricks for almost two decades, and was very happy with it. But IMHO TikZ has set new standards. I am not using PSTricks any more, and in fact right now I am translating in old slides pictures from PSTricks to TikZ. TikZ is generally much more powerful, i.e. it is in most cases possible to translate PSTricks to ...


4

You could store the opacity and set it explicitly in your wire style: \documentclass{article} \usepackage{tikz} \usetikzlibrary{backgrounds} % to put something on the background \tikzset{% on layer/.code={ \pgfonlayer{#1}\begingroup \aftergroup\endpgfonlayer \aftergroup\endgroup } } % to process undefined tags \pgfkeys{/tag/.is family, /...


2

According to your first error message, extra y ticks doesn't seem to be happy with expressions such as 0.95*2. I don't know if this is expected or a bug, but your idea of using \pgfmathparse in order to give extra y ticks already-computed values was a good one; you just missed an important point when trying to implement it. The calculation per se (\...


2

Using sketch you can get: the code (take from the documentation) is def n_cyl_segs 20 def n_views 10 def I [1,0,0] def endopts [fill=blue] repeat { n_views, rotate(180/n_views, [I]) then translate([I] * 2.1) } sweep[endopts]{ n_cyl_segs<>, rotate(360/n_cyl_segs, [0,1,0]) } line[fill=red](1,-1)(1,1) global { language tikz }


2

There are two options. Either you use a reasonably new compatibility mode (1.11 or higher) or preprend the coordinates with axis cs:. I illustrate the first option. Compared to using \addplot his has the advantage that you can use all the usual constructions like, say, bend left, you do not have problems with legends and so on. \documentclass{article} \...


1

(to long for comment) Considering @Sigur comment, using 12pt font size and after removed command large in document body gives expected nice lookout of your document: \documentclass[12pt]{article} \usepackage{geometry} \geometry{a4paper} \usepackage[frenchb]{babel} \usepackage{mathptmx} \usepackage{tikz} \title{Homework problem set 3} \author{Marcus} \...


1

Coordinates are scaled but line widths are not. pics are normally not scaled unless the transform shape option is provided. \documentclass[border=1cm]{standalone} \usepackage{tikz} \newlength{\mylinewidth} \setlength{\mylinewidth}{10pt} \tikzset{ twolines/.pic={ \draw[line width=\mylinewidth, yshift= \mylinewidth] (-1,0) -- (1,0); \draw[line ...


1

I won't hazard an approximate explanation, but using code from Loop Space, you can perform the following steps separately: define and name your uu path; draw it, possibly applying decorations as a postaction. This solves the problem here. \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections,decorations.markings} % Code from Loop Space: ...


1

What about knitr? \documentclass{article} \begin{document} <<echo=F,dev="tikz",message=FALSE>>= fsinsin <- function (x, y) {return (sin(x)*sin(y))} x <- seq(-6, 6, length= 40) y <- x z <- outer(x, y, fsinsin) library(lattice) library(gridExtra) trellis.par.set("axis.line", list(col=NA,lty=1,lwd=1)) wireframe(z, drape=T, shade=F, xlab=...


1

The desired coordinate system is not an orthographic projection and can thus not obtained with tikz-3dplot (unless you overrule it by hand).


1

I have tried the indications given by @Symbol 1 and this is what I have achieved. Thanks again. \tikzstyle{every picture}+=[remember picture] \everymath{\displaystyle} \begin{minipage}[b]{0.8\textwidth} \hfill\begin{tikzpicture} \draw[decorate,decoration=brace,very thick] (3,0) -- (10,0)node [midway, above=2pt] {\Large {Idazkera zientifikoa}}; \end{...


2

In your coordinate system it would be a mess because you do not use orthographic projections and the sphere will look like an egg. If you use orthographic projections, a sphere of radius r is just as circle of the same radius in screen coordinates. \documentclass[margin=5pt, tikz]{standalone} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{...


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