Menu

#818 New interactive command: 'M' to toggle "set view map"

Version 5
closed-rejected
nobody
None
5
2025-04-04
2024-10-24
dima
No

Hi. Here's a simple interactive command to toggle "set view map" in 3d plots. Works great for me. Maybe should be extended to cycle between xy, xz,yz projections, but I'd like to hear your comments first.

Thanks.

1 Attachments

Discussion

  • dima

    dima - 2025-02-20

    Hi. Can I get a comment about this one? It's VERY useful for some of my use cases, and it would be nice to get it merged

     
  • Ethan Merritt

    Ethan Merritt - 2025-02-20

    Is there a reason you can't just put the bind command in your personal ~/.gnuplot?

    bind 'M' " if (GPVAL_VIEW_MAP) {set view} else {set view map}; replot"
    

    That should work immediately in all gnuplot versions back at least to 5.0

     

    Last edit: Ethan Merritt 2025-02-20
  • dima

    dima - 2025-02-21

    Thanks for the note! I just didn't know about it. One tweak I had to make: "refresh" instead of "replot" to handle volatile data. Leaving it as "replot" makes gnuplot quit immediately. With "refresh" it's perfect. Thanks!

     
  • Ethan Merritt

    Ethan Merritt - 2025-04-04
    • status: open --> closed-rejected
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.