Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python code unable to show Bokeh line chart
#1
Hi all,

Would appreciate your help on why my Bokeh line chart doesnt show the line graph.

Thanks

# output to static HTML file
output_notebook()
x = pull_hdbrpi.iloc[:,0]
y = pull_hdbrpi.iloc[:,1]


# create a new plot with a title and axis labels
p = figure(title="HDB Resale Price Index Linechart", x_axis_label='Quarter', y_axis_label='Index')

# add a line renderer with legend and line thickness
p.line(x, y, legend="Temp.", line_width=2)

# show the results
show(p)

buran wrote Feb-05-2019, 11:20 AM:
For tags, please use square brackets - e.g. [ and ], not < and >
Quote
#2
please post large enough code snippet that it can be run.
Quote
#3
Hi Larz60+,

Thanks for your help, my friend managed to solve it as my data was not in int format thats why the line didnt show up.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  UNable to install plivoxml module deepakdeshp 1 92 Jan-21-2019, 07:41 PM
Last Post: Larz60+
  How do I make my plot show up? ThomasM4 0 160 Dec-09-2018, 05:28 AM
Last Post: ThomasM4
  Unable to implement loop count zukochew 3 391 Jul-25-2018, 06:23 PM
Last Post: ichabod801
  Unable to connect to MS Access sasanuru 1 709 Jun-20-2018, 01:59 PM
Last Post: Larz60+
  Unable to create csv file Sumaira 2 642 Feb-06-2018, 03:43 AM
Last Post: Sumaira
  Python UI - Getting Label to show to left of QLineEdit ijosefson 1 648 Nov-11-2017, 01:54 AM
Last Post: ijosefson
  bar chart and custom colormap metalray 1 2,299 Apr-17-2017, 08:45 PM
Last Post: zivoni
  matplotlib and line chart with shaded area metalray 10 8,889 Apr-11-2017, 08:54 AM
Last Post: metalray

Forum Jump:


Users browsing this thread: 1 Guest(s)