In [12]:
import matplotlib.pyplot as plt  # to start
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
plt.style.use('classic')

%load_ext autoreload
%autoreload 2

#plotting inside ipython
pd.options.display.max_rows = 999

import matplotlib.pyplot as plt
import matplotlib
matplotlib.style.use('ggplot')
%matplotlib nbagg


The autoreload extension is already loaded. To reload it, use:
  %reload_ext autoreload

In [13]:
df = pd.read_csv('rna_calc_rmsd_multi_targets_output.csv')

In [27]:
df2 = pd.melt(df, id_vars=['fn'])

In [32]:
df2


Out[32]:
fn variable value
0 21_3dRNA_1_rpr.pdb 21_solution_0_ChainA.pdb 12.17
1 21_Adamiak_1_rpr.pdb 21_solution_0_ChainA.pdb 4.64
2 21_ChenHighLig_1_rpr.pdb 21_solution_0_ChainA.pdb 4.01
3 21_Das_1_rpr.pdb 21_solution_0_ChainA.pdb 5.71
4 21_3dRNA_1_rpr.pdb 21_solution_0_ChainB.pdb 12.11
5 21_Adamiak_1_rpr.pdb 21_solution_0_ChainB.pdb 4.61
6 21_ChenHighLig_1_rpr.pdb 21_solution_0_ChainB.pdb 3.97
7 21_Das_1_rpr.pdb 21_solution_0_ChainB.pdb 5.60
8 21_3dRNA_1_rpr.pdb 21_solution_1_ChainA.pdb 12.17
9 21_Adamiak_1_rpr.pdb 21_solution_1_ChainA.pdb 4.64
10 21_ChenHighLig_1_rpr.pdb 21_solution_1_ChainA.pdb 4.01
11 21_Das_1_rpr.pdb 21_solution_1_ChainA.pdb 5.71
12 21_3dRNA_1_rpr.pdb 21_solution_1_ChainB.pdb 12.11
13 21_Adamiak_1_rpr.pdb 21_solution_1_ChainB.pdb 4.61
14 21_ChenHighLig_1_rpr.pdb 21_solution_1_ChainB.pdb 3.97
15 21_Das_1_rpr.pdb 21_solution_1_ChainB.pdb 5.60
16 21_3dRNA_1_rpr.pdb 21_solution_2.pdb 12.11
17 21_Adamiak_1_rpr.pdb 21_solution_2.pdb 4.64
18 21_ChenHighLig_1_rpr.pdb 21_solution_2.pdb 4.07
19 21_Das_1_rpr.pdb 21_solution_2.pdb 5.61

In [31]:
df2.plot.box()#x='fn', y='value')


Out[31]:
<matplotlib.axes._subplots.AxesSubplot at 0x1190401d0>

In [16]:
df.plot.box(x='fn')


Out[16]:
<matplotlib.axes._subplots.AxesSubplot at 0x1182e5790>