# [Gmsh] 2D plot

Wed Aug 4 13:19:12 CEST 2010

```ok! But, I want to show the values 0.0, -0.1, -0.2, -0.3 instead of: 0, 1,
2, 3... etc (the distance to the first point, as you mentioned). How can I
do this in a 2D plot?

On Wed, Aug 4, 2010 at 12:24 AM, Christophe Geuzaine <cgeuzaine at ulg.ac.be>wrote:

> On 10/07/10 21:48, Marios Papadopoulos wrote:
>
>> I want to plot a X-Y Data in a 2D plot in Gmsh where:
>> X-Y Values are:
>>
>> x1 =  0.0,    y1 =  0.0
>> x2 = -0.1,    y2 = -0.1
>> x3 = -0.2,    y3 = -0.4
>> x4 = -0.3,    y4 =  2.0
>> etc.
>>
>> I create a .pos file with this:
>>
>> View "X-Y Plot" {
>>   SP(0.0,0.0,0.0){0.1};
>>   SP(-0.1,0.0,0.0){-0.1};
>>   SP(-0.2,0.0,0.0){-0.4};
>>   SP(-0.3,0.0,0.0){2.0};
>> etc...
>> };
>>
>> But in X Axis shows the values: 0, 1, 2, 3... etc instead of 0.0, -0.1,
>> -0.2, -0.3.
>>
>> Where is the bug?
>>
>>
> It's not a bug, it's a "feature" :-) We use the distance to the first point
> as the abscissa in 2-D plots...
>
>
>>
>> _______________________________________________
>> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20100804/383006de/attachment.html>
```