View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Poincare Sphere Plot of Polarimetry Stokes Vectors

4.4 | 5 ratings Rate this file 26 Downloads (last 30 days) File Size: 255 KB File ID: #10979 Version: 1.0
image thumbnail

Poincare Sphere Plot of Polarimetry Stokes Vectors



04 May 2006 (Updated )

This routine plots the Stokes vectors on a 3-D Poincare sphere using a graphical user interface.

| Watch this File

File Information

This script plots the polarization Stokes vectors (S1, S2, S3) on a Poincare sphere. See "Polarized Light" by Collett (publ. Dekker) for a background on the optics.

Type "poincare" at the Matlab prompt and a graphical window should pop up. Enter an input data file in the GUI, then lick "Plot". You can also save the output graph to a .jpg file.

The input data file format can be modified to your instrument's output. Currently the format is compatible with the ThorLabs PA-430 Polarimeter. This data file format conforms to that produced by the above polarimeter's data logger application, which is part of the "polar4.exe" software provided for this instrument. This software is running on a Win95 machine with a Keithley DAS-1700 PCI board controlling the polarimeter.

This plot routine uses shading to indicate where on the 3-D surface the
data lies. That is, if the data lies on the back-side of the sphere, then it should be shaded; otherwise it is not shaded. The routine behaves in this manner in the figure window on the screen, however, unfortunately there is a bug regarding this shading algorithm if the figure is printed (directly to a printer) or if the figure is saved to a graphical file. Matlab suggested that this is due to a bug in the OpenGL graphics renderer. They have confirmed this bug in both Matlab 7.1 and Matlab
7.2. So far I have not found a suitable workaround. See the .m code for some comments from Matlab on the problem. If you discover a fix, I would be glad to hear it!

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
24 Feb 2016 xiaoxi chen

04 May 2008 Sahriar Abdullah

The format of ThorLabs PA-430 Polarimeter data is <Time stamp>,<Stokes 0 - 3>,<DOP>,<DOLP>,<DOCP>,<Ellipticity>,<Orientation>\n
You can change other polarimeter data to this format and visulize the poincarre sphere

06 Nov 2007 Shawn Hurley

Use print screen to capture any image you plot then paste into your favorite image editor such as paint to save into .jpg for instance.

15 Dec 2006 Saroj PULLTEAP

18 Oct 2006 Alberto Carrasco

Muy Ăștil

Contact us