Git Product home page Git Product logo

Comments (8)

leewujung avatar leewujung commented on August 23, 2024

I am aware of this issue and have attempted to fix it. I think this is a Matlab problem, but welcome to debug and it'll be great to have it fixed.

from callmark.

falkben avatar falkben commented on August 23, 2024

Okay, I think I understand what is going on.

Each time you zoom or pan - you have the zoom object use a callback which replots the spectrogram. When the spectrogram gets replotted, the axes gets reset, which also resets the zoom limits. So there is no way to zoom out because according to new axes with the freshly plotted spectrogram, you are as zoomed out as possible. The reason "zoom in" still works is because you can always zoom in. However, you cannot zoom outside the constraints of the image.

The simplest way I can think of to deal with this problem is to just avoid the use of the "zoom out" button and include a button that resets the zoom. Thoughts?

from callmark.

leewujung avatar leewujung commented on August 23, 2024

Well, the zoom out actually works if you click the lower panel (time series), but not on the upper panel (spectrogram). I think something can be worked out to change the existing way of plotting, or just write something to overload the zoom out button so that there's no need for an extra button.

from callmark.

falkben avatar falkben commented on August 23, 2024

Ah, dang. I cannot believe I didn't try to do this. Well, my fork has a button now. Let me know if you want me to submit a pull request.

from callmark.

leewujung avatar leewujung commented on August 23, 2024

Do you mind changing it to overload the zoom out button? I think it's more user-friendly that way.

from callmark.

falkben avatar falkben commented on August 23, 2024

I think that's pretty involved and low level.

This was as fast a fix as I could think of and also serves a purpose ...
Sometimes you might actually want to zoom all the way out.

On Aug 12, 2016 5:52 PM, "Wu-Jung Lee" [email protected] wrote:

Do you mind changing it to overload the zoom out button? I think it's more
user-friendly that way.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAn254dVmG1uk1bJCddVoB0hMQ6HAokEks5qfOspgaJpZM4JjPhc
.

from callmark.

leewujung avatar leewujung commented on August 23, 2024

Yes, and you can do that by double clicking while in the zoom-out mode...
For overloading the button, go to GUIDE -->Tools --> Toolbar Editor, and there you could specify the callback functions :)

from callmark.

falkben avatar falkben commented on August 23, 2024

OK, looks like the time trace is where I should direct people for zooming. If I overloaded the zoom out button to run the function that zooms all the way out, then they wouldn't be able to zoom partially out using the time trace - so I'm not going to change that. In any case it's good to know how easy it is to overload the button callback. Thanks.

from callmark.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.