Problème lié à l'orientation de hachurages (Riemann)
Posté : mar. 15 déc. 2015, 12:50
Bonjour, j'ai un comportement de hachurages que je n'arrive pas à expliquer. Lorsque je mets une orientation NE, aucun problème, lorsque je mets NW, les hachurages ne remplissent pas les rectangles...
Exemple qui fonctionne bien:
Exemple qui ne fonctionne pas bien chez moi (voir fichier joint) mais bien sur le forum!:
Exemple qui fonctionne bien:
*** Pour masquer/découvrir le code Asymptote qui a permis de créer la figure, il faut cliquer dessus. ;-) ***
- CODE ASYMPTOTE de la figure ci-dessus : Tout sélectionner
- import graph_pi;
- import patterns;
- real xmin=-0.2, xmax=3.2,ymin=-0.4, ymax=1.5;
- graphicrules(unit=3.6cm, xmin=xmin, xmax=xmax,ymin=ymin, ymax=ymax);
- cartesianaxis(extraheight=0,extrawidth=0,xticks=Ticks(Step=1,step=0,NoZero,end=false,endlabel=false,begin=true,beginlabel=true), yticks=Ticks(Step=1,step=0,NoZero,end=false,endlabel=false,begin=true,beginlabel=true));
- label("$O$",(0,0),SE);
- real f(real t)
- {return t*log(t);}
- path Cf=graph(f,0.01,2.1,n=300);
- draw(Cf,linewidth(0.75bp));
- //def hachures
- add("hhachure",hatch(H=2mm,NE));
- for (int i=1; i<=4; ++i){
- filldraw((0.75+0.25*i,0)--(0.75+0.25*i,f(1+0.25*i))--(1+0.25*i,f(1+0.25*i))--(1+0.25*i,0)--cycle,pattern("hhachure"));
- }
- label("$\mathcal{C}$",(0.7,-0.2));
- shipout(bbox(0.1cm,0.1cm,invisible));
Exemple qui ne fonctionne pas bien chez moi (voir fichier joint) mais bien sur le forum!:
*** Pour masquer/découvrir le code Asymptote qui a permis de créer la figure, il faut cliquer dessus. ;-) ***
- CODE ASYMPTOTE de la figure ci-dessus : Tout sélectionner
- import graph_pi;
- import patterns;
- real xmin=-0.2, xmax=3.2,ymin=-0.4, ymax=1.5;
- graphicrules(unit=3.6cm, xmin=xmin, xmax=xmax,ymin=ymin, ymax=ymax);
- cartesianaxis(extraheight=0,extrawidth=0,xticks=Ticks(Step=1,step=0,NoZero,end=false,endlabel=false,begin=true,beginlabel=true), yticks=Ticks(Step=1,step=0,NoZero,end=false,endlabel=false,begin=true,beginlabel=true));
- label("$O$",(0,0),SE);
- real f(real t)
- {return t*log(t);}
- path Cf=graph(f,0.01,2.1,n=300);
- draw(Cf,linewidth(0.75bp));
- //def hachures
- add("hhachure",hatch(H=2mm,NW));
- for (int i=1; i<=4; ++i){
- filldraw((0.75+0.25*i,0)--(0.75+0.25*i,f(1+0.25*i))--(1+0.25*i,f(1+0.25*i))--(1+0.25*i,0)--cycle,pattern("hhachure"));
- }
- label("$\mathcal{C}$",(0.7,-0.2));
- shipout(bbox(0.1cm,0.1cm,invisible));