diff ref struct Web Powder diffraction series in the browser · maps, stacks and growth curves · nothing uploaded

Share a view, keep a set

Share a view, keep a set

Two things travel: a link, which carries a view and no data; and a plot set file, which carries a whole set's choices for the page, the Mac app and the command line.

A link

The page's address always holds what is on screen: the folder's name, where the set came from, the view, the colour scale, the zoom, the clip and the region. For example:

https://jmigartua.github.io/diff-ref-struct-web/#folder=1_Tb2pd2sn&set=buf%3ATb_vs_T.buf&view=map&scale=log&zoom=24%2C36%2C4%2C30&clip=3.2%2C4.5
  1. Copy the address and send it, or bookmark it.
  2. Whoever opens it opens their copy of the same folder: the set opens as it was, and the view comes back. Missing files are named.
  3. For this to work across a team, keep one layout and one folder name (for instance run/ with Data/ and Plots/), and the same file names.

The link holds names and numbers already on screen, never a file's content: it can go in an e-mail without sending the data.

A plot set file

  1. Plots ▾ ▸ Save Plot Set. The .drv (plain text) is downloaded: members by file name, each typed value with its source, order, steps, scales, reference, windows, opacities, clips, regions.
  2. Put it in the folder's Plots/. Opened from the tree, it brings everything back; in the Mac app's Plots module and with drs plots open it opens the same.
  3. Send the .drv (a few kB) to whoever makes the figures: the regions and clips you chose become the publication's.

Figures

This version does not export figures. Figure look shows how a view prints (white, open axes, a scale bar for stacks); a screenshot of it serves a draft. Publication figures come from the Mac app's Publish module, typeset by LaTeX, from the same .drv.

In the manual: §13 saving and exporting, §16 the view in the address.