Category : plot

I have a dataframe look like this:- df1.set_index(‘date’, inplace=True) date symbol roe 2019-12-31 FMC 21.2189 2018-12-31 FMC 16.7456 2017-12-31 FMC -4.9167 2016-12-31 FMC 6.5580 2015-12-31 FMC -11.1408 2014-12-31 FMC 19.6675 2013-12-31 FMC 23.6372 2012-12-31 FMC 29.7916 2011-12-31 FMC 32.2291 2010-12-31 FMC 18.3737 2009-12-31 FMC 22.6811 2008-12-31 FMC 35.8547 2007-12-31 FMC 15.6253 2006-12-31 FMC 14.2645 2005-12-31 ..

Read more

I want to plot a scatter plot in pandas and it runs fine. But after I add the legend, it runs really slow and got stuck. Can anyone help me, please? fcdp_data_100HZ[[‘Second’,’totCNTs’]].plot.scatter(x="Second", y="totCNTs",color=’royalblue’,s=100,alpha=0.5, ax=axes[1]) axes[1].set_title("Counts") axes[1].grid() axes[1].set_ylim([1,100]) axes[1].set_yscale(‘log’) axes[1].set_ylabel("Counts") axes[1].legend([‘100HZ’]) fcdp_data_20HZ[[‘Second’,’totCNTs’]].plot.scatter(x="Second", y="totCNTs",color=’coral’, s=100,alpha=0.5, ax=axes[1]) axes[1].set_title("Counts") axes[1].grid() axes[1].set_ylim([1,100]) axes[1].set_yscale(‘log’) axes[1].set_ylabel("Counts") axes[1].legend([’20HZ’]) fcdp_data_1HZ[[‘Second’,’totCNTs’]].plot.scatter(x="Second", y="totCNTs",color=’darkslategrey’,s=100,alpha=0.5, ax=axes[1]) axes[1].set_title("Counts") axes[1].grid() ..

Read more

I am taking in live ECG data (for now being simulated) and processing that data, then live plotting it. My line plots are successfully being plotted and updating, while after far too many hours of searching(I am a beginner unfortunately) I was finally able to at least get the scatter plot data to initially plot, ..

Read more

I have this function that will make an animated video of scatter plots. Although, the videos are not correct and do not correspond to the plots that should be getting snapped. Instead of capturing all the plots, it seems that the video is only the last plot. def plotting(df,food,N): # intialize camera to be fixed ..

Read more