Skip to content

Commit

Permalink
Fix image path
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Milk committed Feb 11, 2023
1 parent bb6b7da commit 52f71a1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
22 changes: 11 additions & 11 deletions app/components/side_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class LabelAdder(PlotAdder):
class ColorsAdder(PlotAdder):
name = "Color Strip"
plotter = Colors
example_image = "img/colors.png"
example_image = "app/img/colors.png"


class TitleAdder(PlotAdder):
Expand Down Expand Up @@ -213,7 +213,7 @@ class DendrogramAdder(PlotAdder):

plot_explain = "Perform hierarchy clustering and draw the dendrogram " \
"that represents the clustering result."
example_image = "img/dendrogram.svg"
example_image = "app/img/dendrogram.svg"

def input_panel(self):
pass
Expand Down Expand Up @@ -267,7 +267,7 @@ class BarAdder(PlotAdder):
plot_explain = "Bar plot use rectangles to show data, " \
"For multiple observations, estimates and errors " \
"will be shown as error bar."
example_image = "img/bar.png"
example_image = "app/img/bar.png"

def extra_options(self):
c1, c2, c3, c4, c5 = st.columns(5)
Expand Down Expand Up @@ -301,7 +301,7 @@ class BoxAdder(PlotAdder):

input_help = STATS_INPUT_HELP
plot_explain = "Box plot shows the distribution of your data"
example_image = "img/box.png"
example_image = "app/img/box.png"

def extra_options(self):
c1, c2, c3 = st.columns(3)
Expand Down Expand Up @@ -331,7 +331,7 @@ class BoxenAdder(PlotAdder):

input_help = STATS_INPUT_HELP
plot_explain = "An enhanced variant of box plot"
example_image = "img/boxen.png"
example_image = "app/img/boxen.png"

def extra_options(self):
c1, c2, c3, c4 = st.columns(4)
Expand Down Expand Up @@ -371,7 +371,7 @@ class PointAdder(PlotAdder):

input_help = STATS_INPUT_HELP
plot_explain = "Similar to box plot, but use point."
example_image = "img/point.png"
example_image = "app/img/point.png"

def extra_options(self):
c1, c2, c3, c4 = st.columns(4)
Expand Down Expand Up @@ -407,7 +407,7 @@ class ViolinAdder(PlotAdder):
input_help = STATS_INPUT_HELP
plot_explain = "Violin plot is a combination of boxplot " \
"and kernel density estimate."
example_image = "img/violin.png"
example_image = "app/img/violin.png"

def extra_options(self):
c1, c2, c3, c4 = st.columns(4)
Expand Down Expand Up @@ -448,7 +448,7 @@ class StripAdder(PlotAdder):

input_help = STATS_INPUT_HELP
plot_explain = "Showing the underlying distribution of your data point"
example_image = "img/strip.png"
example_image = "app/img/strip.png"

def extra_options(self):
c1, c2 = st.columns(2)
Expand All @@ -467,7 +467,7 @@ def get_options(self):
class SwarmAdder(StripAdder):
name = "Swarm"
plotter = Swarm
example_image = "img/swarm.png"
example_image = "app/img/swarm.png"


class CountAdder(PlotAdder):
Expand All @@ -476,7 +476,7 @@ class CountAdder(PlotAdder):
color: str

plot_explain = "Show the counts of observations in each categorical."
example_image = "img/count.svg"
example_image = "app/img/count.svg"

def extra_options(self):
self.color = st.color_picker("Color", value="#00b796")
Expand All @@ -489,7 +489,7 @@ class AnnoLabelsAdder(PlotAdder):
name = "Annotated specific labels"
plotter = AnnoLabels
plot_explain = "Annotate a few rows or columns."
example_image = "img/annolabels.png"
example_image = "app/img/annolabels.png"

def input_panel(self):
super().input_panel()
Expand Down
2 changes: 1 addition & 1 deletion app/pages/Manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

_, img, _ = st.columns((1, 2, 1))
with img:
st.image("img/x-layout.png", use_column_width=True,
st.image("app/img/x-layout.png", use_column_width=True,
caption="Schematic of x-layout")

st.markdown(
Expand Down
10 changes: 5 additions & 5 deletions app/x-layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
st.set_page_config(
page_title="Heatgraphy",
layout="centered",
page_icon=imread("img/favicon.png"),
page_icon=imread("app/img/favicon.png"),
initial_sidebar_state="collapsed",
menu_items={
'Report a bug': 'https://github.com/heatgraphy/heatgraphy/issues/new/choose',
Expand Down Expand Up @@ -143,24 +143,24 @@ def render_plot(global_options,

with heat:
st.markdown("Heatmap reveal variation through color strength.")
st.image("img/heatmap.png", width=100)
st.image("app/img/heatmap.png", width=100)
h_data = HeatmapData()

with sheat:
st.markdown("Sized Heatmap encodes size as extra information in heatmap")
c1, c2 = st.columns(2)
with c1:
st.markdown("Size Only")
st.image("img/sized_onlymap.png", width=100)
st.image("app/img/sized_onlymap.png", width=100)
with c2:
st.markdown("Color + Size")
st.image("img/sized_heatmap.png", width=100)
st.image("app/img/sized_heatmap.png", width=100)

sh_data = SizedHeatmapData()

with mar:
st.markdown("Use a mark to mark the cell on heatmap")
st.image("img/mark_map.png", width=100)
st.image("app/img/mark_map.png", width=100)
m_data = MarkerData()

if st.session_state["data_ready"]:
Expand Down

0 comments on commit 52f71a1

Please sign in to comment.