Jump to content

Deploy a Python Graph in the Spotfire Environment


Ash Shirazi

Recommended Posts

Hi,

I have a simple python 3D scatter graph that i would like to use in my spotfire dashboard. The code is as follows

import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

from mpl_toolkits.mplot3d import Axes3D

 

df = pd.read_csv('Hiring_Data.csv')

sns.set(style = "darkgrid")

 

fig = plt.figure()

ax = fig.add_subplot(111, projection = '3d')

 

x = df['Candidates']

y = df['Positions']

z = df['Fills']

 

ax.set_xlabel("Candidates")

ax.set_ylabel("Positions")

ax.set_zlabel("Fills")

 

ax.scatter(x, y, z)

 

 

 

plt.show()I've been able to load the correct libraries (i think) but i want to check if what i want to do is even possible firstly

Secondly - what is the best way to go about this

I've spent a considerable number of hours researching this but there's limited supporting documentation available

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...