[Gmsh] A basic question
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Wed Aug 13 22:35:51 CEST 2008
David Colignon wrote:
> Hi Neil,
>
> from the documentation:
>
> http://geuz.org/gmsh/doc/texinfo/gmsh-full.html#SEC42
>
> ...
> By default, Gmsh treats all post-processing views as three-dimensional plots, i.e., draws the scalar, vector and tensor primitives (points,
> lines, triangles, tetrahedra, etc.) in 3D space. But Gmsh can also represent each post-processing view containing scalar points as
> two-dimensional ("X-Y") plots, either space- or time-oriented:
>
> * in a `2D space' plot, the scalar points are taken in the same order as they are defined in the post-processing view: the abscissa of
> the 2D graph is the curvilinear abscissa of the curve defined by the point series, and only one curve is drawn using the values associated
> with the points. If several time steps are available, each time step generates a new curve;
> * in a `2D time' plot, one curve is drawn for each scalar point in the view and the abscissa is the time step.
> ...
Here's a small example. Put this is a .geo file:
View "simple plot with 2 steps" {
SP(0,0,0){0.1, -0.1};
SP(1,0,0){0.2, -0.2};
SP(2,0,0){0.4, -0.4};
SP(3,0,0){0.9, -0.9};
SP(4,0,0){1.5, -1.5};
SP(5,0,0){5.0, -5.0};
};
View[0].Axes = 1;
View[0].Type = 2;
>
> Cheers,
>
> Dave
>
>
> --
> David Colignon, Ph.D.
> Collaborateur Logistique F.R.S.-FNRS (Equipements de Calcul Intensif)
> ACE - Applied & Computational Electromagnetics
> Institut Montefiore B28
> Université de Liège
> 4000 Liège - BELGIQUE
> Tél: +32 (0)4 366 37 32
> Fax: +32 (0)4 366 29 10
> WWW: http://www.montefiore.ulg.ac.be/personnel.php?op=detail&id=898
> Agenda: http://www.google.com/calendar/embed?src=david.colignon%40gmail.com
>
>
> Neil Hodge wrote:
>> All:
>>
>> I was wondering if gmsh has any facility to do simple 2D plots of data
>> points, i.e., can it plot
>>
>> [x1,y1]
>> [x2,y2]
>> . . . . . .
>> [xn,yn]
>>
>> ?
>>
>> Thanks.
>>
>> Neil
>>
>> _______________________________________________
>> gmsh mailing list
>> gmsh at geuz.org
>> http://www.geuz.org/mailman/listinfo/gmsh
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
>
>
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine