How to Install SciDraw Package in Mathematica

Installing ScriDraw Package in Mathematica

SciDraw is a system for preparing publication-quality scientific figures with Mathematica.

Details about SciDraw

SciDraw provides both a framework for structuring figures and tools for generating their content.  SciDraw helps with generating figures involving mathematical plots, data plots, and diagrams. The package allows extensive manual fine tuning of the styling of text and graphics.

The structural framework includes:

  • generation of panels for multi-panel and inset figures, with fine control over all properties,
  • customizable tick marks,
  • style definitions for uniformly controlling formatting and appearance across multiple figures,
  • tools for annotating figures with text labels, axes, etc.
  • Any graphics (plots, images, etc.) which you can produce in or import into Mathematica can easily be included in a SciDraw figure.

Beyond these structural elements, SciDraw then also provides an object oriented drawing system which makes many hard-to-draw scientific diagrams comparatively easy to generate — e.g., by helping you to automatically attach text labels to objects in the figure (such as geometric shapes, arrows, and mathematical curves), and by helping you to position these objects with respect to each other.

SciDraw also provides data plotting and legend generation capabilities complementary to those built into Mathematica. 

SciDraw is the successor to LevelScheme [see also Comput. Phys. Commun. 171, 107 (2005)].  The LevelScheme package was designed to allow the easy and efficient preparation of high-quality level schemes, or level energy diagrams, as used in nuclear, atomic, molecular, and hadronic physics.  These capabilities have been retained.  Like LevelScheme, SciDraw automates many of the tedious aspects of preparing a level scheme, such as positioning transition arrows between levels or placing text labels alongside the objects they label. It also includes specialized features for creating several common types of level schemes encountered in nuclear physics.

Reference:
https://scidraw.nd.edu

How to Install SciDraw

I will be sharing the installation guide for Windows only. For any other system, you can follow the SciDraw Guide Pdf.

Step 1: Download SciDraw Package

Download the latest version of SciDraw package Zip from official website scidraw.nd.edu.

Step 2: Install Package in Mathematica

  • First extract the zip file you downloaded.
  • You will see 2 folders; doc, and packages
  • Move the doc folder to your choice of place. You will find all guides in these doc folder.
  • Now, go to the application folder of your Mathematica. In windows, it is like this: 
    C:\Users\samik\AppData\Roaming\Mathematica\Applications
  • Move all 8 directories (BlockOptions, CustomTicks, ...) from the packages folder and paste them in the above mentioned Applications folder.

Step 3: Verify Installation

  • To check from within Mathematica, to see if you have done this successfully, you can run 
    SetDirectory[FileNameJoin[{$UserBaseDirectory, "Applications"}]] FileNames[]
  • The output should look like
    {BlockOptions, CustomTicks, InheritOptions, MathObject, NamedColors, Profile, SciDraw, StyleOptions}

Step 4: Load SciDraw in Mathematica

  • Now you can just load SciDraw as usual for a Mathematica package
    Needs["SciDraw`"]
    PrintSciDrawSplash[]
  • The Output will look like this:
    SciDraw Output

PrintSciDrawSplash[] is not needed to load SciDraw. But, I still run it to see the picture.

CAUTION: Load the package first! You must be sure to always load the package before you first try to use any of the SciDraw commands. Not doing so is a very common source of trouble! If you ever accidentally try to use any of the symbols defined in a Mathematica package, before loading the package, when you do attempt to load the package you will see “shadowing” error messages

Reference:
https://scidraw.nd.edu/beta/SciDrawGuide.pdf

Trying to understand Physics in a Simple way.

Post a Comment

© My Physics. All rights reserved. Developed by Jago Desain