
Gizmo plots and gridlines

masheroz
Is there a way to only draw every 2nd or 5th (or nth) gridline, whilst still calculating and displaying the plot at every grid point?
modifygizmo/n=gizmo0 modifyobject=surface0, property={ystep, 5}
will change the grid in the y-direction, but will degrade the surface quality
A gridded surface depends on the sampling of the grid. If you choose grid lines that are too far apart, your surface will be under-sampled; that should be obvious. If you can't live without the grid lines then you might consider creating another surface object that uses filled surface. Add it to the display list above your gridded surface and apply transparency so that you can see your under-sampled grids on top of the fully sampled surface.
I hope this helps,
A.G.
WaveMetrics, Inc.
July 31, 2015 at 09:08 am - Permalink
July 31, 2015 at 09:14 am - Permalink
I am attaching a Gizmo figure showing the results of the above code.
(1) you can do this manually for a few grid lines, or figure out how to write a loop and program a sequence of triplet wave generation. Then, adding to Gizmo will require code using EXECUTE for each ModifyGizmo operation.
(2) it is probably cleaner to lump such grid lines into a Gizmo Group (as I did in my test example). Use
ModifyGizmo userLevel=9
to add a Group object from the Gizmo info window.August 5, 2015 at 05:35 am - Permalink
I'll give it a go.
August 5, 2015 at 06:38 pm - Permalink