Mouse and Drag/Zoom Behavior

Have a suggestion for improving DPlot or a question about existing features? Let us know

Moderator: DPlotAdmin

Post Reply
jsc
Posts: 222
Joined: Fri Dec 02, 2005 8:56 am

Mouse and Drag/Zoom Behavior

Post by jsc »

David,

I just purchased a full copy of dPlot after playing with dPlotjr for a couple days. Something seems different between the two, and it's a little annoying because I'm not sure how it is supposed to act. I didn't see anything here that addressed my question.

In the dPlot window, when I left-click in the plotting area, the program seems to zoom into the area. If I left click and drag, an arrow is displayed on the screen and the plot window seems to do a zoom and move (pan?). I really don't think I want it to do either, as it loses my place in the plot (ctrl-z undoes it, thankfully!). What is annoying is that sometimes I forgot to click the zoomwindow button, so my left-mouse-click does an unexpected jump. The other time is when I try to drag a note, and I miss so the whole plot zooms and pans.

I don't remember dPlotjr responding to mouse clicks this way.

How is this supposed to work? Did I miss something in the help file that explains it?

Thanks for a great program!

Jon
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Jon,
DPlot will pan when you click and drag on a zoomed plot; DPlot Jr will not. Checking just now, though, this should work better than it does. It should be checking to see whether you've moved the mouse when you left-click and release, but the test is apparently too sensitive or I've had too much coffee today, as I cannot left-click in a zoomed plot w/o the plot jumping a bit. I'll correct this, adding a check for some minimum distance you have to drag the mouse, with that minimum distance being substantially larger than the 1 pixel now used.
Visualize Your Data
support@dplot.com
jsc
Posts: 222
Joined: Fri Dec 02, 2005 8:56 am

Post by jsc »

Boy, I like your quick responses!

Thanks!
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Fixed in a minor update. Licensed users can get the update by selecting Help>Check for Updates.

Changes since 2.0.1.8:

Info>Interpolate now allows you to input a date value for X if one of the calendar date number formats is used for the X axis.

View>Reorder Curves now includes "curves" which serve only as the source of error amplitudes for error bars. In previous versions these curves were not included, which made it very hard to correctly associate colors with curves.

Added pressure unit selection to Data Processing dialog (psi, megapascals, and kilopascals). Previous versions were limited to psi.

Bug fix: The pan feature for zoomed XY plots erroneously panned the plot a small distance if you simply clicked within the plot. This version does not pan the plot unless you drag the mouse by 10 or more pixels before releasing.

Bug fix: Axis labels and legends with embedded carriage return/line feed sequences or line feeds only were handled improperly in DPlot. You might end up with these embedded characters if, for example, you use Alt+Enter in a column heading in Microsoft Excel to force a line break in a label. When saved to a DPlot file these embedded characters were preserved, which in some circumstances caused DPlot to crash when reading that saved file. In this release DPlot 1) prevents this crash with previously saved files, 2) when pasting data from the clipboard or handling data passed by DPLOTLIB.DLL (from the Excel Add-In, for example), replaces these characters with the literal characters \n, which DPlot recognizes as a line break, and 3) performs the same check before saving a file, for cases that might have been missed by #2.

Bug fix: If bitmap dimensions specified with Edit>Copy>Dimensions or any of the image export plugins was set to a very small non-zero value, then DPlot would waste a lot of time trying to find a combination of font sizes and plot size that would fit within the specified rectangle, taking minutes to produce a bitmap instead of the normal second or so. In this version if either the width or height values are less than 100 pixels, DPlot behaves as if those values were set to 0: the document window dimensions will be used.

Bug fix: Relatively new feature of being able to select multiple curves in the Symbol/Line Styles dialog had a bug that could under some circumstances cause DPlot to crash.

Color selections saved to a DPlot file were incorrectly assigned if the file was opened with File>Append (appended to an existing plot).

Added an option to outline solid filled symbols on XY plots in black. In previous versions all symbols on XY plots were drawn with a single color.

If you create a curve in an empty document using an equation (Y=f(X), etc.) and check "degrees", the polar plot "degrees" option is now automatically turned on (that is, input angular values are assumed to be in degrees rather than radians). Likewise if "radians" is checked when creating a curve, the "radians" polar option is turned on.
Visualize Your Data
support@dplot.com
jsc
Posts: 222
Joined: Fri Dec 02, 2005 8:56 am

Post by jsc »

David,
Thanks for the quick fixes! So I'm just a little sheepish about saying this, since you corrected this so fast. I just noticed now that if there is a note in the plot area, clicking on the note causes the drag arrow to show, just like before when you clicked anywhere in the plot window. Also, do you think that you could make the drag go away with an escape? Now, if the program thinks you want to drag/pan, there is no way to stop the in-process command - you have to make the second click.

Thanks again.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

So I'm just a little sheepish about saying this...
No need to be.
I just noticed now that if there is a note in the plot area, clicking on the note causes the drag arrow to show, just like before when you clicked anywhere in the plot window.
It shouldn't, and doesn't for me. I can't imagine that this would be effected by the version of Windows you're running, but... what version of Windows are you running?
Also, do you think that you could make the drag go away with an escape? Now, if the program thinks you want to drag/pan, there is no way to stop the in-process command - you have to make the second click.
Sure, that's no problem. Good suggestion, too.
Visualize Your Data
support@dplot.com
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Whoops, never mind. If you double-click on a note while the plot is zoomed, then after closing the Note dialog you get one, possibly more arrows.
Visualize Your Data
support@dplot.com
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Licensed users can select Help>Check for Updates to get version 2.0.2.1.

Changes:

Note placement may now be tied to data space, rather than a fixed location relative to the plot. The location of the note can now be tied to the left, center, or right of the note horizontally, or the top, middle, or bottom of the note vertically. Added TextNoteEx macro/DDE command to handle these new capabilities.

You can press the Escape key to cancel a plot pan (normally done by dragging the mouse).

Bug fix: On a zoomed plot if you clicked on a note or the legend, then the pan arrow appeared once you moved the mouse, even though the plot would not be panned.
Visualize Your Data
support@dplot.com
jsc
Posts: 222
Joined: Fri Dec 02, 2005 8:56 am

Post by jsc »

Wow! Thanks!

Jon
Post Reply