Search found 4 matches

by Enzo
Thu Jun 05, 2014 6:33 am
Forum: Graphics, Figures & Tables
Topic: PGF / Object-Oriented Programming
Replies: 3
Views: 4028

PGF / Object-Oriented Programming

Something like that ?

Code: Select all

\pgfoonew myArray = new Array(\x,\y)

\foreach \i in {0,...,(\x-1)} {
  	\foreach \j in {0,...,(\y-1)} {
		\myArray.set(\i,\j, new object(some parameters))
	}
}
by Enzo
Wed Jun 04, 2014 9:46 am
Forum: Graphics, Figures & Tables
Topic: PGF / Object-Oriented Programming
Replies: 3
Views: 4028

PGF / Object-Oriented Programming

Hello,

I'm interested by the oop module of PGF, but I'm confused by the lack of structures like dynamical arrays or linked lists to store and handle large numbers of objects.

Is there a solution ?

Thanks,

Enzo
by Enzo
Thu Jan 09, 2014 10:17 pm
Forum: Graphics, Figures & Tables
Topic: Balls as Plot Marks
Replies: 2
Views: 9343

Re: Balls as Plot Marks

Thanks !
by Enzo
Sun Jan 05, 2014 2:15 pm
Forum: Graphics, Figures & Tables
Topic: Balls as Plot Marks
Replies: 2
Views: 9343

Balls as Plot Marks

Hi,

I want to use a ball as a marker in a 3D plot. My code looks like this.
\begin{tikzpicture}
\pgfdeclareplotmark{ball}{%
\shade[draw=none,ball color=red] (0,0) circle (\pgfplotmarksize);
}

\begin{axis}[colormap/bluered]
\addplot3+[
z buffer=sort,
scatter,
scatter src=d,
only marks ...