Line plot in GnuPlot where line color is a third column in my data file?

This following works for me (gnuplot 4.4) plot “./file.dat” u 1:2:3 with lines palette Hope this helps. When I ran your code gnuplot couldn’t pass the “rgb” part. For an example of using the variable tag see the similar question: GNUPLOT: dot plot with data depending dot size with the useful examples found here: http://gnuplot.sourceforge.net/demo/pointsize.html … Read more

matplotlib: Aligning y-axis labels in stacked scatter plots

You can use the set_label_coords method. import matplotlib.pylab as plt import random import matplotlib.gridspec as gridspec random.seed(20) data1 = [random.random() for i in range(10)] data2 = [random.random()*1000 for i in range(10)] gs = gridspec.GridSpec(2,1) fig = plt.figure() ax = fig.add_subplot(gs[0]) ax.plot(data1) ax.set_ylabel(r’Label One’, size =16) ax.get_yaxis().set_label_coords(-0.1,0.5) ax = fig.add_subplot(gs[1]) ax.plot(data2) ax.set_ylabel(r’Label Two’, size =16) ax.get_yaxis().set_label_coords(-0.1,0.5)

Can I give a border (outline) to a line in matplotlib plot function?

If you plot a line twice it won’t show up in the legend. It’s indeed better to use patheffects. Here are two simple examples: import matplotlib.pyplot as plt import numpy as np import matplotlib.patheffects as pe # setup data x = np.arange(0.0, 1.0, 0.01) y = np.sin(2*2*np.pi*t) # create line plot including an outline (stroke) … Read more

How to set xlim and xticks after plotting time-series data

It works for me (with pandas 0.16.2) if I set the x-axis limits using pd.Timestamp values. Example: import pandas as pd # Create a random time series with values over 100 days # starting from 1st March. N = 100 dates = pd.date_range(start=”2015-03-01″, periods=N, freq=’D’) ts = pd.DataFrame({‘date’: dates, ‘values’: np.random.randn(N)}).set_index(‘date’) # Create the plot … Read more

reversed Y-axis D3

Maybe this will help. http://jsfiddle.net/S575k/4/ A few notes: I reversed your y domain range from .range([0, h-margin]); to .range([h-margin, 0]); This will fix the issue of the y-axis marks going in the wrong direction because the browser consider’s the origin (0,0) point to the the upper-left corner, and not the bottom-left corner like in math. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)