# How to export trees viewed in auspice as images?

**URL:** <https://nextstrain.discourse.group/t/how-to-export-trees-viewed-in-auspice-as-images/1429>\
**Category:** Uncategorized\
**Created:** [September 1, 2023, 4:45pm UTC](https://nextstrain.discourse.group/t/how-to-export-trees-viewed-in-auspice-as-images/1429 "2023-09-01T16:45:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![xchen](https://avatars.discourse-cdn.com/v4/letter/x/c37758/32.png) [@xchen](https://nextstrain.discourse.group/u/xchen)\
**Post date:** [September 1, 2023, 4:45pm UTC](https://nextstrain.discourse.group/t/how-to-export-trees-viewed-in-auspice-as-images/1429/1 "2023-09-01T16:45:55Z")

</div>

I’ve just figured out how to run a build with nextstrian pipeline and got a pretty good view in auspice. I want to export that result as an image and use it as a figure in my paper. How can I do that? Or is there any other easy ways to use another tool to do so? I’m using WSL btw.

---

<div class="post-metadata">

**Author:** ![victorlin](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/victorlin/32/306_2.png) [@victorlin](https://nextstrain.discourse.group/u/victorlin)\
**Post date:** [September 1, 2023, 5:03pm UTC](https://nextstrain.discourse.group/t/how-to-export-trees-viewed-in-auspice-as-images/1429/2 "2023-09-01T17:03:00Z")

</div>

Hi @xchen,

[These instructions](https://docs.nextstrain.org/en/latest/guides/share/download-data.html#svg-screenshot) to export a screenshot in SVG format were written for [nextstrain.org](http://nextstrain.org), but you can use them for any view in Auspice.

Let me know if that doesn’t work for you!

– Victor

---

<div class="post-metadata">

**Author:** ![xchen](https://avatars.discourse-cdn.com/v4/letter/x/c37758/32.png) [@xchen](https://nextstrain.discourse.group/u/xchen)\
**Post date:** [September 1, 2023, 5:27pm UTC](https://nextstrain.discourse.group/t/how-to-export-trees-viewed-in-auspice-as-images/1429/3 "2023-09-01T17:27:05Z")

</div>

Thanks for your reply. I can download the image now! However, this brought up another problem. The radial tree does not look complete. Like the date displayed at the bottom… Is there any way to zoom out a bit?

 ![Untitled](https://canada1.discourse-cdn.com/flex031/uploads/nextstrain/original/1X/547f4a4cfddafddc83aef3ed5215f2c2cbfc043d.png)

---

<div class="post-metadata">

**Author:** ![victorlin](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/victorlin/32/306_2.png) [@victorlin](https://nextstrain.discourse.group/u/victorlin)\
**Post date:** [September 1, 2023, 5:54pm UTC](https://nextstrain.discourse.group/t/how-to-export-trees-viewed-in-auspice-as-images/1429/4 "2023-09-01T17:54:42Z")

</div>

I think this is a bug with Auspice, but you should be able to work around it by editing the SVG file directly. Can you upload your SVG file as an attachment? I can try to fix it for you, and that will also help me understand the bug better.

---

<div class="post-metadata">

**Author:** ![xchen](https://avatars.discourse-cdn.com/v4/letter/x/c37758/32.png) [@xchen](https://nextstrain.discourse.group/u/xchen)\
**Post date:** [September 1, 2023, 6:25pm UTC](https://nextstrain.discourse.group/t/how-to-export-trees-viewed-in-auspice-as-images/1429/5 "2023-09-01T18:25:16Z")

</div>

Sure. I appreciate your help. Here’s the file. And also, there’s a weird small circle in the middle.  
 ![nextstrain_ncov_mybuild1 (1)](https://canada1.discourse-cdn.com/flex031/uploads/nextstrain/original/1X/554db21e68c828093132402289611b07070de3db.svg)

---

<div class="post-metadata">

**Author:** ![xchen](https://avatars.discourse-cdn.com/v4/letter/x/c37758/32.png) [@xchen](https://nextstrain.discourse.group/u/xchen)\
**Post date:** [September 1, 2023, 6:28pm UTC](https://nextstrain.discourse.group/t/how-to-export-trees-viewed-in-auspice-as-images/1429/6 "2023-09-01T18:28:40Z")

</div>

Weird. I can’t attach it. I uploaded it to my onedrive. Here’s the link. Hope it works. [https://1drv.ms/u/s!ApPu7dEx34YYhzonkY4-1qN\_ySP-?e=ncucgu](https://1drv.ms/u/s!ApPu7dEx34YYhzonkY4-1qN_ySP-?e=ncucgu)

---

<div class="post-metadata">

**Author:** ![victorlin](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/victorlin/32/306_2.png) [@victorlin](https://nextstrain.discourse.group/u/victorlin)\
**Post date:** [September 1, 2023, 6:57pm UTC](https://nextstrain.discourse.group/t/how-to-export-trees-viewed-in-auspice-as-images/1429/7 "2023-09-01T18:57:39Z")

</div>

@xchen Here’s a fixed version, hosted at [nextstrain\_ncov\_mybuild1.svg (github.com)](https://gist.github.com/victorlin/a2d397fb7f89eff4346126f29939b3e2).

![](https://canada1.discourse-cdn.com/flex031/uploads/nextstrain/original/1X/ed81e716b3eec1bc8255dde54d831bfa793abd68.svg)

> **Detailed changes**
>
> ```auto
> % git log --pretty=format:"---%n%n%B"  
> ---
> 
> Fix centering of smallest major grid circle
> 
> ---
> 
> Increase tree SVG height by 200
> 
> This way all grid lines are shown.
> 
> ---
> 
> Remove tree SVG clipping
> 
> This is not suitable for the radial view¹.
> 
> ¹https://github.com/nextstrain/auspice/commit/ca4c4176795b6a903239469111920fc6e1294f46
> 
> ---
> 
> ```

I hope this helps!

---

<div class="post-metadata">

**Author:** ![xchen](https://avatars.discourse-cdn.com/v4/letter/x/c37758/32.png) [@xchen](https://nextstrain.discourse.group/u/xchen)\
**Post date:** [September 1, 2023, 7:55pm UTC](https://nextstrain.discourse.group/t/how-to-export-trees-viewed-in-auspice-as-images/1429/8 "2023-09-01T19:55:10Z")

</div>

Looks perfect. May I ask how you edited the SVG file? What tool did you use?

---

<div class="post-metadata">

**Author:** ![victorlin](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/victorlin/32/306_2.png) [@victorlin](https://nextstrain.discourse.group/u/victorlin)\
**Post date:** [September 1, 2023, 8:14pm UTC](https://nextstrain.discourse.group/t/how-to-export-trees-viewed-in-auspice-as-images/1429/9 "2023-09-01T20:14:05Z")

</div>

For this I used a text editor. You can clone the GitHub Gist to see the changes in detail:

```sh
git clone https://gist.github.com/victorlin/a2d397fb7f89eff4346126f29939b3e2 svg-fix
cd svg-fix
# View changes with git log, git show, etc.

```

For bigger changes, you can look into using visual SVG editors. For that, I personally use [Graphic](https://apps.apple.com/us/app/graphic/id404705039) on macOS.

---

<div class="post-metadata">

**Author:** ![xchen](https://avatars.discourse-cdn.com/v4/letter/x/c37758/32.png) [@xchen](https://nextstrain.discourse.group/u/xchen)\
**Post date:** [September 1, 2023, 8:25pm UTC](https://nextstrain.discourse.group/t/how-to-export-trees-viewed-in-auspice-as-images/1429/10 "2023-09-01T20:25:17Z")

</div>

Sounds great! Thanks!
