User guide
6-11
NoticeinthepreviousexamplethatthefirstinputtotheplotSetTitlefunctionis
&myPlotandnotjustthevariablename,myPlot.Thisisbecausealloftheplot-
Controlsettingfunctionstakeastructurepointer.Theampersand(&)infrontofthevar-
iablenamemakestheinputargumentapointertothatstructure.
Passingstructurepointersasargumentsismuchfasterandmoreefficientthanpassing
anentirestructure.TheruleforrememberingwhentouseaplotControlstructure
pointerinsteadofplotControlstructureissimple.Ifthefunctionyouarecallingsetsa
valueinthestructure,youneedtouseastructurepointer.Inallothercases,usethe
structure.
FortunatelythefunctioncompletiontooltipintheGAUSSeditorwillindicatewhichis
required,incaseyouforgetthissimplerule.Formoreinformationonstructuresand
structurepointersseeSTRUCTURES,CHAPTER16.
6.5 Adding Data to Existing Plots
Youmayaddadditionaldatato2-Dplots.Thisfunctionalityisaccessedthroughthefol-
lowing:
plotAddBar
Addsasetofbarstoanexisting2-Dgraph.
plotAddBox
Addsaboxplottoanexisting2-Dgraph.
plotAddHist
Addsahistogramtoanexisting2-Dgraph.
plotAddHistF
Addsafrequencyhistogramtoanexisting2-
Dgraph.
plotAddHistP
Addsapercentagehistogramtoanexisting
2-Dgraph.
plotAddPolar
Addsapolarplottoanexistingpolargraph.
plotAddScatter
Addsascatterplottoanexisting2-Dgraph.
plotAddXY
AddsanXYlinetoanexisting2-Dgraph.
GAUSS Graphics










