# \[Graphviz Visual Editor\] How to shift graphic window contents

**URL:** https://forum.graphviz.org/t/graphviz-visual-editor-how-to-shift-graphic-window-contents/802
**Category:** Uncategorized
**Created:** [August 31, 2021, 5:47pm UTC](https://forum.graphviz.org/t/graphviz-visual-editor-how-to-shift-graphic-window-contents/802 "2021-08-31T17:47:12Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kirkh](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kirkh](https://forum.graphviz.org/u/kirkh)
#### Post date: [August 31, 2021, 5:47pm UTC](https://forum.graphviz.org/t/graphviz-visual-editor-how-to-shift-graphic-window-contents/802/1 "2021-08-31T17:47:12Z")

</div>

Finding [Graphviz Visual Editor](http://magjac.com/graphviz-visual-editor/?dot=digraph%20H%20%7B%0A%20%20a%20%5Blabel%3D%3C%3CFONT%20COLOR%3D%22RED%22%20POINT-SIZE%3D%2224.0%22%20FACE%3D%22ambrosia%22%3Eline4%3C%2FFONT%3E%20and%20then%20more%20stuff%3E%5D%0A%20%20b%20%5Blabel%3Dsimple%5D%0A%20%20c%0A%20%20a-%3Eb-%3Ec%0A%7D%0A) very useful. First of a short set of queries.

Is there a way to move the contents of the graphic (right-hand) window around? I know how to zoom in and out, but haven’t figured out how to move the image left-right, up-down.

---

<div class="post-metadata">

### Author: ![magjac](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/magjac/32/16_2.png) [@magjac](https://forum.graphviz.org/u/magjac)
#### Post date: [August 31, 2021, 8:44pm UTC](https://forum.graphviz.org/t/graphviz-visual-editor-how-to-shift-graphic-window-contents/802/2 "2021-08-31T20:44:32Z")

</div>

Hold Ctrl down and drag with the primary mouse button.

For more, click the help icon rightmost in the toolbar: ![image](https://global.discourse-cdn.com/graphviz/original/1X/2a0c97cf1ebda8bf2e9aea7c543ef6d30760da2e.png)

---

<div class="post-metadata">

### Author: ![kirkh](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kirkh](https://forum.graphviz.org/u/kirkh)
#### Post date: [September 1, 2021, 12:48am UTC](https://forum.graphviz.org/t/graphviz-visual-editor-how-to-shift-graphic-window-contents/802/3 "2021-09-01T00:48:26Z")

</div>

Thanks. I’m a native English speaker and didn’t catch the intent of “pan” in the help file; I’d have found “scroll” more intuitive. A data point for your collection.

---

<div class="post-metadata">

### Author: ![magjac](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/magjac/32/16_2.png) [@magjac](https://forum.graphviz.org/u/magjac)
#### Post date: [September 1, 2021, 4:44am UTC](https://forum.graphviz.org/t/graphviz-visual-editor-how-to-shift-graphic-window-contents/802/4 "2021-09-01T04:44:30Z")

</div>

OK. Thanks. I’m not a native English speaker so I don’t really know, but it seems to me that pan and zoom is the established vocabulary. The underlying mechanism is from this D3 plugin:

> **[GitHub - d3/d3-zoom: Pan and zoom SVG, HTML or Canvas using mouse or touch...](https://github.com/d3/d3-zoom)**
>
> Pan and zoom SVG, HTML or Canvas using mouse or touch input. - GitHub - d3/d3-zoom: Pan and zoom SVG, HTML or Canvas using mouse or touch input.

---

<div class="post-metadata">

### Author: ![kirkh](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kirkh](https://forum.graphviz.org/u/kirkh)
#### Post date: [September 1, 2021, 1:58pm UTC](https://forum.graphviz.org/t/graphviz-visual-editor-how-to-shift-graphic-window-contents/802/5 "2021-09-01T13:58:11Z")

</div>

_Pan_ is definitely not wrong. But in my experience the word’s most common use by far is for wide (left-right) viewing, as in _panorama_; the dictionaries I checked listed this horizontal usage first. That’s probably why I didn’t pick up on the description when looking for all-direction motion. As insurance for any others out there like me, perhaps consider “Pan the graph left-right and up-down”, of “Pan the graph in any direction”?

Then some other user can complain to you that the revised description is, technically, redundant. Send them to me and we’ll fight it out. 😄

---

<div class="post-metadata">

### Author: ![scnorth](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/scnorth/32/89_2.png) [@scnorth](https://forum.graphviz.org/u/scnorth)
#### Post date: [September 3, 2021, 7:01pm UTC](https://forum.graphviz.org/t/graphviz-visual-editor-how-to-shift-graphic-window-contents/802/6 "2021-09-03T19:01:56Z")

</div>

I don’t have any light to shed on this, but I would still like to talk about it. It was surprising to note that in photography, one talks about pan-tilt-zoom (for example in remotely operated video cameras), so X and Y are different. In computer graphics, though, according to Wikipedia, which points to some other reference I never heard of, pan means to move the camera parallel to the view plane. This doesn’t mention limiting translation to the X coordinate. I think d3-zoom also adopts this terminology.
