Skip to content
Snippets Groups Projects
Commit 45c76334 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent 72de3ec6
No related branches found
No related tags found
No related merge requests found
// $Id: Graph2D.cpp,v 1.1 2001-10-29 08:52:19 geuzaine Exp $ // $Id: Graph2D.cpp,v 1.2 2001-10-29 09:44:29 geuzaine Exp $
#include "Gmsh.h" #include "Gmsh.h"
#include "GmshUI.h" #include "GmshUI.h"
...@@ -88,7 +88,7 @@ void Draw_Graph2D(Post_View *v){ ...@@ -88,7 +88,7 @@ void Draw_Graph2D(Post_View *v){
} }
} }
else{ else{
dx = v->GraphSize[0]/(double)v->NbTimeStep; dx = v->GraphSize[0]/(double)(v->NbTimeStep-1);
for(i=0; i<v->NbTimeStep; i++){ for(i=0; i<v->NbTimeStep; i++){
glBegin(GL_LINES); glBegin(GL_LINES);
glVertex2d(xtop+i*dx,ybot); glVertex2d(xtop+i*dx,ybot);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment