Re: Afficher un graphique a partir d'un programme
Posté: 08 Jan 2019, 14:26
Je veux afficher des points dont les coordonnées sont récupérées par un input
News, programmes, tutoriaux, forum sur les calculatrices TI !
https://tiplanet.org/forum/
:FnOff
:PlotsOff
:AxesOn
:GridOff
:ClrHome
:Disp "ENTREZ LES","DONNEES DU","GRAPHIQUE POUR","QU'IL SOIT CREE","AUTOMATIQUEMENT
:Pause
:ClrHome
:Disp "NB DE DONNEES
:Input "PAR AXE:",N
:N->dim(L1
:N->dim(L2
:ClrHome
:Disp "ABSCISSES
:Input "DEPART:",D
:Input "INTERVALLE:",I
:D->L1(1)
:For(Z,2,N
:D+I(Z-1->L1(Z)
:End
:For(Z,1,N
:ClrHome
:Disp "ORDONNEES :","VALEUR N°
:Output(2,10,Z
:Input P
:P->L2(Z
:End
:Menu(" TYPE GRAPHIQUE ","NUAGE POINTS",A,"COURBE",B,"HISTOGRAMME",C,"QUITTER",Q
:Lbl Q
:ClrHome
:Output(1,1,"
:Return
:Lbl A
:Plot1(Scatter,L1,L2,*marque*
:ZoomStat
:Trace
:Pause
:Goto Q
:Lbl B
:Plot1(xyLine,L1,L2,*marque*
:ZoomStat
:Trace
:Pause
:Goto Q
:Lbl C
:Plot1(Histogram,L1,L2
:min(L1)->Xmin
:max(L1)+I->Xmax
:I->Xscl
:max(L2)->Ymax
:0->Ymin
:iPart(Ymax/10)->Yscl
:1->Xres
:DispGraph
:Trace
:Pause
:Goto Q