Ploting "real size" figures in matplotlib (scrollbars instead of zooming)

I have a problem with plotting in matplotlib. I need to plot a wide figure which represents an allocation of radio resources in time. But when a time period is big, the plot shrinks and I need to...

3d surface plot with xyz coordinates

I am hoping someone with experience can help in how one prepares the shape files from xyz data. A great example of a well-prepared dataset can be seen here for the comet Churyumov–Gerasimenko,...

Find ratio between two signals

We are recording two fluorescences signals from a mouse with an optical fiber. The mouse is a control one so the signals have different intensity but have the same shape. I want to find and plot...

Cannot find plot function in GPy library (python)

I am using the GPy library in Python 2.7 to perform Gaussian Process regressions. I started by following the tutorial notebooks provided in the GitHub page. Sample code : import numpy as np import...

Creating 2D bins in R

I have coordinate data in R, and I would like to determine a distribution of where my points lie. The entire space of points is a square of side length 100. I'd like to assign points to different...

Using scipy.interpolate.interpn to interpolate a N-Dimensional array

Suppose I have data that depends on 4 variables: a, b, c and d. I want interpolate to return a 2D array which corresponds to a single value of a and b, and an array of values for c and d. However,...

Python: Animating a vector using mplot3d and animation

I'm trying to make a 3d plot with Matplotlib and the animation package from matplotlib. In addition, the animation should be a part of a Gui generated using PyQt and Qt-Designer. Currently I'm...

Get confidence limits from Gaussian Process model in Python GPy

I calcualted a Gaussian Process model in Python using GPy: ker0 = GPy.kern.Bias(input_dim=1,variance=1e-2) ... m = GPy.models.GPRegression(x, y, ker0+ker2) I can plot it...

R NMF package: How to extract sample classifications?

In the NMF R-package one can use consensusmap() to visualise outputs. The plots show which samples belong to which clusters in the "consensus" track. I would like to extract this sample...

How to scale two signals in Matlab

I would like to scale a signal (Sig) to its reference (Ref) by calculating the scaling factor. Usually, I calculate the scaling factor by dividing max(Ref) by max(Sig). But, it only works when...

Python Plotly, how to remove background horizontal line?

How to get rid of the background horizontal lines on this chart? The lines that represent the scales 5, 10, 15, etc. You can find the code below: # Plotting waterfall chart for Years of...

Labels overlap in gnuplot

Having a data file I want to add labels to my bar plot, but unfortunately the labels overlay above the first bar and I could not figure out how to add an offset to each label: set xrange[0:30] set...

Changing the formatting of a datetime axis in matplotlib

I have a series whose index is datetime that I wish to plot. I want to plot the values of the series on the y axis and the index of the series on the x axis. The Series looks as...

Matplotlib semi-log plot: minor tick marks are gone when range is large

When making a semi-log plot (y is log), the minor tick marks (8 in a decade) on the y axis appear automatically, but it seems that when the axis range exceeds 10**10, they disappear. I tried many...

Customize the axis label in seaborn jointplot

I seem to have got stuck at a relatively simple problem but couldn't fix it after searching for last hour and after lot of experimenting. I have two numpy arrays x and y and I am using seaborn's...

GIN Index has O(N^2) complexity for array overlap operator?

I ran into an issue with using the && array operator on a GIN index of mine. Basically I have a query that looks like this: SELECT * FROM example WHERE keys && ARRAY[1,2,3,...] This works fine...

Is it possible to use Plotly.js in a C# Winforms WebBrowser component?

I am attempting to use Plotly.js in a C# Winforms desktop application from within a WebBrowser toolbox component for the sake of seamlessness, and am having some difficulties. The code is loaded...

Heatmap colorbars accumulating in Matplotlib/Seaborn figures

I have a list of data frames, and I want to make heatmaps of every data frame in the list. The first heatmap comes out perfectly, but the second one has two colorbars, one much larger than the...

How can I rotate the arrow marker in a Bokeh plot to show wind speed direction?

What I am trying to do is to use a scatter plot to display wind speed and its direction. I wanted to use the triangle marker and use the rotation to indicate wind speed. However, since bokeh...

Python GPy module: how to plot model predictions over simple x-axis?

In Python, I was attempting to dive into the GPy library for estimating Gaussian Process models, when I encountered a stumbling block early on with simple plotting. For my data, I generated a...

How to combine plot of two GPy models?

I have calculated two GP regression models and would like to have them plotted in the same figure. Model 1 kernel = GPy.kern.RBF(input_dim=1, variance=.1, lengthscale=1.) m1 =...

Controlling figure height when using interactive plots in jupyter lab

I'm trying to use a combination of JupyterLab and the latest ipywidgets to have a basic graphic interface to explore some data. However, I cannot find a way to set up the figure height for the...

Add text labels at the top of density plots to label the different groups

I have the following ggplot density plot ggplot(mpg, aes(cty)) + geom_density(aes(fill=factor(cyl))) How do I remove the legend , and add labels above each distribution to denoted the group it...

Plot not showing after plt.show(), gives no error 'and only shows : <Figure size 432x288 with 0 Axes>'

I'm trying to plot a geographical data using a shapefile and a dataframe,(following the instructions in this...

Altair remove border in LayerChart

I am trying to remove the border from an altair chart. This answer works perfectly but it fails when I try to visualize a layered chart. In my setting I have two charts, one for the contour m1 and...

How to put image uploaded in tkinter into a function?

I am trying to create a Python tkinter application where the user can upload an image from file and the image is put through a image segmentation function which outputs an matplotlib plot. I have...

R: Plotting Multiple Graphs using a "for loop"

I am using the R programming language. Using the following code, I am able to put two plots on the same page: #load library library(dbscan) #specify number of plots per page par(mfrow =...

Dash callback preventing other callbacks

I am relatively new to Dash, and thought I understood the callbacks pretty well. However, I am now in a situation where it seems I need to have all callbacks within one callback, as my program...

Plotly: How to highlight weekends without looping through the dataset?

I am trying to plot three different timeseries dataframes (each around 60000 records) using plotly, while highlighting weekends (and workhours) with a different background color. Is there a way to...

How to store real time data from a websocket on a webpage?

I am streaming data from a websocket server (python software) to a webpage. When I access the webpage the websocket connection is made and I have some HTML code that starts plotting the data. As a...