-
Notifications
You must be signed in to change notification settings - Fork 982
Closed
Labels
BUGunexpected behaviorunexpected behavior
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();
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BUGunexpected behaviorunexpected behavior
