# These are Plotly Express Graphs of the some of the above Seaborn graphs. Run them only if you need more details about the data in the graph. They will make your notebook run slower.
# Number of Jobs vs Users Requesting RAM per CPU
%% Cell type:markdown id: tags:
%% Cell type:markdown id: tags:
Graphs: <br>
Graphs: <br>
User Requested RAM per CPU for all Jobs
Jobs Requesting RAM per CPU for all Jobs
<br>
User Requested RAM per CPU for Non Array Jobs
<br>
<br>
User Requested RAM per CPU for Array Jobs
Users Requesting RAM per CPU for all Jobs
<br>
<br>
User Requested RAM per Node for all Jobs
Jobs Requesting RAM per CPU for Array Jobs vs Not Array Jobs
<br>
<br>
User Requested RAM per Node for Non Array Jobs
Users Requesting RAM per CPU for Array Jobs vs Not Array Jobs
<br>
User Requested RAM per Node for Array Jobs
<br>
<br>
These graphs create histograms using the data for the month of March 2020.
These graphs create histograms using the data for the month of March 2020.
The x axis measures the amount of requested RAM in gigs per CPU/Node, from 0 to the max declared in the upperRAMlimit variable above - 5 gigs.
The x axis measures the amount of requested RAM in gigs per CPU, from 0 to the max declared in the upperRAMlimit variable above - 5 gigs.
The y axis measures how many users requested that amount RAM per CPU or Node.
The y axis measures how many jobs requested that amount RAM per CPU.
Can also show box or violin graph above to show where min, max, median, and 3rd quartile is.
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
```
CPU_fig = px.histogram(CPU_cutoff, x="ReqMemCPU",
# shows all user requested cpu memory for array and non array jobs
title='User Requested RAM per CPU for all Jobs %i gigs or less'%UpperlimitGB,
Jobs_fig = sns.distplot(JobsCPU_cutoff['ReqMemCPU'], kde=False, label='Jobs Requesting RAM per CPU for Array and Non Array Jobs', color = "green")
labels={'ReqMemCPU':'ReqMemCPU'}, # can specify one label per df column