Skip to content

Heatmap temperature bar not displaying correctly #492

@White-Rabbit-Scientific

Description

Describe the bug
Heatmap temperature bar is displayed under the plot area.

I have an application that has multiple tabs, thus the TabItem. The temperature bar is mostly hidden -- you can see the top of it poking above the black border line in the image below. I have messed around with the grid Width but the bar remains hidden as shown.

UPDATE: If I add wpfHeatMapPlot.Render(); as shown below, then is displays correctly. The call to Render however is not mentioned in the Cookbook for the heatmaps, perhaps because all heatmaps were being piped to a PDF file rather than to the screen window.

                <WrapPanel>
                    <Grid Width="800" Height="700" Margin="10,10,10,10" Background="WhiteSmoke">
                        <WpfPlot Name="wpfHeatMapPlot" />
                    </Grid>
                    <Grid x:Name="bt_Plot" Width="300" Height="80" >
                        <Button x:Name="bt_plotme" Content="Plot Heat Map" Click="Button_PlotHeat"/>
                    </Grid>
                </WrapPanel>
        public void PlottyInitializeHeatMap()
        {
            var plt = new ScottPlot.Plot(600, 400);
        }
        public void PlottyHeatMap(HeatMapDataStor dataStor)
        {
            wpfHeatMapPlot.plt.Title("Viscosity heat map", fontSize: 20);
            wpfHeatMapPlot.plt.XLabel("Well plate columns 1-12", fontSize: 16, bold: true);
            wpfHeatMapPlot.plt.YLabel("Well plate rows A-H", fontSize: 16, bold: true);
            wpfHeatMapPlot.plt.PlotHeatmap(dataStor.Intensities);
            >>> UPDATE wpfHeatMapPlot.Render();
        }

Screenshots
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGunexpected behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions