|
Turning off "grid" lines |
Posted by KeithB on Feb-03-2024 02:57 |
|
What do you call a circular grid? 8^)
So, I have started my Smith Chart program, and started with a polar chart. I have gotten this far:
How do I turn off the polar ticks and labels?
|
Re: Turning off "grid" lines |
Posted by Peter Kwan on Feb-03-2024 03:17 |
|
Hi KeithB,
You can turn off things in ChartDirector by setting their colors to transparent.
For the polar ticks and labels, you may use:
c.radialAxis().setColors(Chart.Transparent, Chart.Transparent);
The above will hide the radial axis, including its labels. If you also want to hide all the circular grid lines, you may use:
c.setGridColor(Chart.Transparent);
Best Regards
Peter Kwan |
Re: Turning off "grid" lines |
Posted by KeithB on Feb-10-2024 01:12 |
|
That did not do it, with the following:
// invisibileize the existing polar chart
PChart.radialAxis().setColors(Chart.Transparent, Chart.Transparent);
PChart.setGridColor(Chart.Transparent);
I still get
|
Re: Turning off "grid" lines |
Posted by Peter Kwan on Feb-10-2024 17:05 |
|
Hi KeithB,
Sorry, the setGridColor should be:
// Hide both the radial grid lines and angular grid lines
PChart.setGridColor(Chart.Transparent, 0, Chart.Transparent, 0);
Best Regards
Peter Kwan |
Re: Turning off "grid" lines |
Posted by KeithB on Feb-12-2024 22:52 |
|
Perfect! Thanks!
|
|