# What does GKSwstype do?

**URL:** https://discourse.julialang.org/t/what-does-gkswstype-do/59226
**Category:** General Usage
**Tags:** question, plotting
**Created:** [April 13, 2021, 6:44pm UTC](https://discourse.julialang.org/t/what-does-gkswstype-do/59226 "2021-04-13T18:44:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![feanor12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/feanor12/32/8212_2.png) [@feanor12](https://discourse.julialang.org/u/feanor12)
#### Post date: [April 13, 2021, 6:44pm UTC](https://discourse.julialang.org/t/what-does-gkswstype-do/59226/1 "2021-04-13T18:44:09Z")

</div>

I can see GKSwstype being used in a lot of workarounds for Plots/GR.

Is there documentation on what the different options do?

I just found a list of options in the C code of GR and I think it sets the (interactive) render/output format.  
[https://github.com/sciapp/gr/blob/c5fbc6613de1437a3dd598680de02af8dbe1098f/lib/gks/util.c#L67-L73](https://github.com/sciapp/gr/blob/c5fbc6613de1437a3dd598680de02af8dbe1098f/lib/gks/util.c#L67-L73)

- nul or 100 disables the interactive output ([source](https://stackoverflow.com/a/64374367))
- win or 41 can speed up the time to first plot on windows ([source](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/40))

---

<div class="post-metadata">

### Author: ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)
#### Post date: [April 13, 2021, 7:31pm UTC](https://discourse.julialang.org/t/what-does-gkswstype-do/59226/2 "2021-04-13T19:31:56Z")

</div>

See [Workstation Types — GR Framework 0.66.0 documentation](https://gr-framework.org/workstations.html)

---

<div class="post-metadata">

### Author: ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)
#### Post date: [April 14, 2021, 10:33am UTC](https://discourse.julialang.org/t/what-does-gkswstype-do/59226/3 "2021-04-14T10:33:09Z")

</div>

Also you pull up that list by looking at the help for `GR.openws`:

```julia
help?> GR.openws
  openws(workstation_id::Int, connection, workstation_type::Int)

  Open a graphical workstation.

  Parameters:

  workstation_id : A workstation identifier. connection : A connection identifier. workstation_type : The desired
  workstation type.

  Available workstation types:

  +-------------+------------------------------------------------------+
  | 5|Workstation Independent Segment Storage |
  +-------------+------------------------------------------------------+
  | 7, 8|Computer Graphics Metafile (CGM binary, clear text) |
  +-------------+------------------------------------------------------+
  | 41|Windows GDI |
  +-------------+------------------------------------------------------+
  | 51|Mac Quickdraw |
  +-------------+------------------------------------------------------+
  | 61 - 64|PostScript (b/w, color) |
  +-------------+------------------------------------------------------+
  | 101, 102|Portable Document Format (plain, compressed) |
  +-------------+------------------------------------------------------+
  | 210 - 213|X Windows |
  +-------------+------------------------------------------------------+
  | 214|Sun Raster file (RF) |
  +-------------+------------------------------------------------------+
  | 215, 218|Graphics Interchange Format (GIF87, GIF89) |
  +-------------+------------------------------------------------------+
  | 216|Motif User Interface Language (UIL) |
  +-------------+------------------------------------------------------+
  | 320|Windows Bitmap (BMP) |
  +-------------+------------------------------------------------------+
  | 321|JPEG image file |
  +-------------+------------------------------------------------------+
  | 322|Portable Network Graphics file (PNG) |
  +-------------+------------------------------------------------------+
  | 323|Tagged Image File Format (TIFF) |
  +-------------+------------------------------------------------------+
  | 370|Xfig vector graphics file |
  +-------------+------------------------------------------------------+
  | 371|Gtk |
  +-------------+------------------------------------------------------+
  | 380|wxWidgets |
  +-------------+------------------------------------------------------+
  | 381|Qt4 |
  +-------------+------------------------------------------------------+
  | 382|Scaleable Vector Graphics (SVG) |
  +-------------+------------------------------------------------------+
  | 390|Windows Metafile |
  +-------------+------------------------------------------------------+
  | 400|Quartz |
  +-------------+------------------------------------------------------+
  | 410|Socket driver |
  +-------------+------------------------------------------------------+
  | 415|0MQ driver |
  +-------------+------------------------------------------------------+
  | 420|OpenGL |
  +-------------+------------------------------------------------------+
  | 430|HTML5 Canvas |
  +-------------+------------------------------------------------------+

```

---

<div class="post-metadata">

### Author: ![feanor12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/feanor12/32/8212_2.png) [@feanor12](https://discourse.julialang.org/u/feanor12)
#### Post date: [April 14, 2021, 7:53pm UTC](https://discourse.julialang.org/t/what-does-gkswstype-do/59226/4 "2021-04-14T19:53:58Z")

</div>

100/nul seems to be missing from that list
