Skip to content

Commit

Permalink
patternDB: Removed spacegroup label in show_histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
Somerandomguy10111 committed Dec 11, 2024
1 parent 109a860 commit db2900c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions xrdpattern/pattern/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ def plot_all(self):


def show_histograms(self, save_fpath : Optional[str] = None):
attrs = ['', 'num_entries', '', 'endval']
fig = plt.figure(figsize=(12,8))

figure = gridspec.GridSpec(nrows=2, ncols=1, figure=fig, hspace=0.5)
Expand Down Expand Up @@ -167,7 +166,6 @@ def define_spg_ax(patterns : list[XrdPattern], ax : Axes):
spg_formulas = [f'${SpacegroupConverter.to_formula(spg, mathmode=True)}$' for spg in spgs]
ax.bar(spg_formulas, counts)
ax.tick_params(labelbottom=True, labelleft=True) # Enable labels
ax.set_xlabel(f'Spacegroup')
ax.set_title(f'(a)')
ax.set_ylabel(f'No. patterns')
ax.set_xticklabels(spg_formulas, rotation=90)
Expand Down

0 comments on commit db2900c

Please sign in to comment.