You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I m trying to apply adjustText in plot of my GUI program. Here is the code snippet my plot function. It do not run correctly as it runs in scripts. Instead, it shows a blank window out of the GUI. I do not know how to fix it. Can you help?
self.fig = Figure(figsize=(width, height), dpi=dpi)
self.fig.subplots_adjust(top=0.95,bottom=0.2,left=0.15,right=0.85)
super(MakeFigure,self).__init__(self.fig)
self.axes = self.fig.add_subplot(111)
self.axes.cla()
scatterplot(data=pltdata, x="x", y="y", hue="G", palette='tab10', legend=False, alpha=0.7, edgecolor='none', marker='.', ax=self.axes)
'''
markers = pltdata[pltdata['G'] == 'Hits']
markers = markers.iloc[:min(len(markers), 10),:]
texts = []
for i in markers.index:
x, y, s = markers.loc[i, 'x'], markers.loc[i, 'y'], markers.loc[i, 'l'].split(';')[0]
texts.append(self.axes.text(x, y, s, fontsize=3))
p = adjust_text(texts, force_points=0.2, force_text=0.2,
expand_points=(1, 1), expand_text=(1, 1),
arrowprops=dict(arrowstyle="-", color='black', lw=0.5), ax=self.axes)
'''
self.draw()
The text was updated successfully, but these errors were encountered:
Hi, I m trying to apply adjustText in plot of my GUI program. Here is the code snippet my plot function. It do not run correctly as it runs in scripts. Instead, it shows a blank window out of the GUI. I do not know how to fix it. Can you help?
The text was updated successfully, but these errors were encountered: