The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » General Data Questions » Spss matplotib graphs (Is it conceivable to utilize some other charting library in SPSS that the implicit? I simply found the python augmentations that makes SPSS extraordinary.)
Spss matplotib graphs [message #16760] Thu, 28 February 2019 03:47
Soujanya is currently offline  Soujanya
Messages: 1
Registered: February 2019
import matplotlib.pyplot as plt
from numpy.random import rand

fig, ax = plt.subplots()
for color in ['red', 'green', 'blue']:
n = 750
x, y = rand(2, n)
scale = 200.0 * rand(n)
ax.scatter(x, y, c=color, s=scale, label=color,
alpha=0.3, edgecolors='none')


This will make a straightforward dissipate plot and it works fine in any IDE, yet when endeavoring to utilize that code in SPSS BEGIN PROGRAM END PROGRAM I get the accompanying blunder:

RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X.
Please either reinstall Python as a framework or try one of the other backends. If you are Working with Matplotlib in a virtual environment see 'Working with Matplotlib in Virtual environments' in the Matplotlib FAQ

Possibly I am soliciting a lot out from the python expansion in SPSShowever it is pleasant to utilize another diagram library than the one they have inherent.

[Updated on: Thu, 28 February 2019 03:56]

Report message to a moderator

Previous Topic: Country-specific Codebooks
Next Topic: Results not matched Cambodia's DHS 2014 report
Goto Forum:

Current Time: Thu May 6 11:51:29 Coordinated Universal Time 2021