<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 5: Small improvement to zoom in (zoom out as well).</title><link href="https://sourceforge.net/p/wxmathplot/feature-requests/5/" rel="alternate"/><link href="https://sourceforge.net/p/wxmathplot/feature-requests/5/feed.atom" rel="self"/><id>https://sourceforge.net/p/wxmathplot/feature-requests/5/</id><updated>2022-11-02T15:26:00.290000Z</updated><subtitle>Recent changes to 5: Small improvement to zoom in (zoom out as well).</subtitle><entry><title>Small improvement to zoom in (zoom out as well).</title><link href="https://sourceforge.net/p/wxmathplot/feature-requests/5/" rel="alternate"/><published>2022-11-02T15:26:00.290000Z</published><updated>2022-11-02T15:26:00.290000Z</updated><author><name>Tony Kennedy</name><uri>https://sourceforge.net/u/kennedylanduk/</uri></author><id>https://sourceforge.net900343528e54f4e84cceea2dda32e974f3414fd8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;The majority of graph components I've used zoom in in the same way that wxMathPlot does (click and draw to the right/down to zoom in).  Many of these components also zoom out by clicking and moving left/up.&lt;/p&gt;
&lt;p&gt;I've implemented this in wxMathPlot, the modified function is below if you want to add it (or I'm happy to commit it if I can).&lt;/p&gt;
&lt;p&gt;All the best,&lt;/p&gt;
&lt;p&gt;Tony.&lt;/p&gt;
&lt;p&gt;void mpWindow::OnMouseLeftRelease (wxMouseEvent &amp;amp;event)&lt;br/&gt;
{&lt;br/&gt;
    wxPoint release(event.GetX(), event.GetY());&lt;br/&gt;
    wxPoint press(m_mouseLClick_X, m_mouseLClick_Y);&lt;br/&gt;
    if (m_movingInfoLayer != NULL) {&lt;br/&gt;
        m_movingInfoLayer-&amp;gt;UpdateReference();&lt;br/&gt;
        m_movingInfoLayer = NULL;&lt;br/&gt;
    } else {&lt;br/&gt;
        if (release != press) {&lt;br/&gt;
            if (release.x &amp;lt; press.x &amp;amp;&amp;amp; release.y &amp;lt; press.y){&lt;br/&gt;
                Fit();&lt;br/&gt;
            }&lt;br/&gt;
            else{&lt;br/&gt;
                ZoomRect(press, release);&lt;br/&gt;
            }&lt;br/&gt;
        } /&lt;em&gt;else {&lt;br/&gt;
            if (m_coordTooltip) {&lt;br/&gt;
                wxString toolTipContent;&lt;br/&gt;
                toolTipContent.Printf(_("X = %f\nY = %f"), p2x(event.GetX()), p2y(event.GetY()));&lt;br/&gt;
                SetToolTip(toolTipContent);&lt;br/&gt;
            }&lt;br/&gt;
        } &lt;/em&gt;/&lt;br/&gt;
    }&lt;br/&gt;
    event.Skip();&lt;br/&gt;
}&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>