Questions tagged [cufflinks]

49 questions
3
votes
1 answer

Using list with keys for best fit line in Cufflinks in Python

I am a beginner trying to use cufflinks to produce a scatter chart. The optional argument to include best fit line is bestfit=True. The code to produce this chart looks like this: import pandas as pd from plotly.offline import iplot,…
mangebike
  • 33
  • 4
2
votes
1 answer

change the width and heigh of iplot

my code is so simple this is my code import cufflinks as cf import pandas as pd cf.go_offline() cf.set_config_file(offline=False, world_readable=True) @st.cache def get_data(url): df = pd.read_csv(url) df["date"] =…
2
votes
1 answer

how to customize hover date info in cufflink iplot?

I am using cufflink iplot. the default hover date info only include month and year. How to include day as well? like (Jan 24 2022, value) instead of (Jan 2022, value) by default? and there is not hovermode keyword. Thanks import cufflinks as cf from…
roudan
  • 3,082
  • 5
  • 31
  • 72
2
votes
0 answers

Strange colors on a few bubbles - plotly/cufflinks

I am doing a bubble plot with plotly/cufflinks in offline mode. Plotly version: 5.1.0 Cufflinks version: 0.17.3 I have a DataFrame with 4 columns A,B,C,D and some random normally distributed data (100 rows in total). Most of the bubbles are black…
peter.petrov
  • 38,363
  • 16
  • 94
  • 159
2
votes
2 answers

Plotly: How to add vertical lines at specified points?

I have a data frame plot of a time series along with a list of numeric values at which I'd like to draw vertical lines. The plot is an interactive one created using the cufflinks package. Here is an example of three time series in 1000 time values,…
fishbacp
  • 1,123
  • 3
  • 14
  • 29
2
votes
0 answers

How to share interactive pyplot charts in a presentation [solved]

I'm quite new to this forum (and to Python), but I'll do my best to explain the issue coherently! Well, I actually solved it using 2 different methods, still posting as this could be useful to others. I'm learning python and have recently stumbled…
Edgar
  • 59
  • 2
  • 8
1
vote
1 answer

AttributeError: module 'pandas' has no attribute 'np' - Cufflinks spread graph

I am currently using cufflinks for the first time and there is an error that I believe is impossible to fix (without reverting pandas to an earlier version, I suppose). I just want to make sure that I am not missing something obvious. When I try to…
1
vote
1 answer

Pandas pivot table cufflinks plot

I have a pivot table named "df_thd_funct_mode1_PVT".It looks like as shown below. Below is my code for plotting the pivot chart. THD_PVT_2V5 = df_thd_funct_mode1_PVT[df_thd_funct_mode1_PVT['Supply'] == 2.5].pivot_table(index='Temp',…
Hari
  • 333
  • 6
  • 18
1
vote
0 answers

Change height of subplots in cufflinks QuantFig() candlestick chart when using iplot(asFigure=True)

my problem is that all sublots of my technical analysis study in cufflinks QuantFig() are the same height when using iplot(asFigure=True). I want to increase the height of the top candlestick chart and decrease the height of the underlying…
1
vote
1 answer

how to include trace name in hovertemplate?

I am using cufflink to plot pandas dataframe using plotly. How to include trance name( column name) in hover template? I use name=df.columns.to_list() then use %{name} in hovertemplate and it doesn't work. Thanks for help. …
roudan
  • 3,082
  • 5
  • 31
  • 72
1
vote
0 answers

Pandas and interactive plots - small interactive surface plot created by iplot on dataframe object

I'm trying to draw interactive charts with using pandas, plotly, cufflinks and iplot on example dataframe data created by me. My chart is very small and unreadable. I've written few line of code like below in jupyter notebook: import pandas as…
Krzysztof Michalski
  • 791
  • 1
  • 9
  • 25
1
vote
1 answer

Plotly graph title and labels are off white color

I have generated the below plotly graph using the code as below : x=['a','b','c','d'] y=['1','2','3','4'] df = pd.DataFrame({'x':x, 'y':y}) fig=df.iplot(kind= 'scatter', size =9,mode='markers+text',opacity=0.8, colors=['blue'], yTitle=…
Rishim Mittal
  • 105
  • 2
  • 7
1
vote
0 answers

How to use cufflinks?

I tried the following code in ipython3. But I don't see any figure plotted. Could anybody let me know how to make the figure visible? Thanks. import pandas as pd apple_df = pd.read_csv('AAPL.csv', index_col=0, parse_dates=True) dt_range =…
user1424739
  • 11,937
  • 17
  • 63
  • 152
1
vote
0 answers

Jupyter Note Book _ModuleNotFoundError: No module named 'cufflinks'.Even after installation

I installed 'cufflinks on my pc as per the instructions provided on the anaconda website. I restarted the PC after installation. It is showing properly in the Anaconda environment also. Please see the below figure. But when running the code in the…
Hari
  • 333
  • 6
  • 18
1
vote
1 answer

Cufflinks shows blank

I tried importing the financial data and use the following code. It runs fine but plotly just show blank canvas. I narrowed down and found out that the problem is cufflink because iplot alone (not using with dataframe still work fine) enter image…
1
2 3 4