Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Removing the z-axis markers when using colorvar( )

    Hi all,

    I have a graph for which I'd like to use the colorvar( ) option, but in this particular case I don't need the right y-axis (i.e., the z-axis) shown at all.

    I was able to remove the z-axis itself using "zscale(off axis(1))" but haven't been able to figure out how to remove the colored markers from the z-axis. Is there any option for this? Thank you!!!

    Code:
    sysuse auto, clear
    scatter price mpg, colorvar(foreign) zscale(off axis(1))
    Click image for larger version

Name:	Screenshot 2025-09-20 at 10.26.45 AM.png
Views:	1
Size:	729.7 KB
ID:	1781977


  • #2
    The markers are clegend keys, you can turn them off by:

    Code:
    scatter price mpg, colorvar(foreign) clegend(off)

    Comment


    • #3
      Perfect! Many sincere thanks, Hua Peng!!!

      Comment

      Working...
      X