Questions tagged [linestyle]

Use for questions regarding the styling of lines (color, width, markers etc.) in plots. Commonly appearing in the context of MATLAB/Octave, gnuplot, matplotlib.

References for various languages:

  • MATLAB: 1, 2, 3.
  • Octave: 1.
  • gnuplot: 1, 2.
  • matplotlib: 1.
81 questions
0
votes
1 answer

Setting plot linestyles afterwards

I am plotting graphs in a loop: cities = grouped_price.index.levels[0] # list of cities dates = grouped_price.index.levels[1] # list of dates, which # are 1st day of each month linestyles = ['-', '-.',…
DDR
  • 459
  • 5
  • 15
0
votes
1 answer

Chevron linestyle in matplotlib

Is it possible to make a dashed linestyle using more complicated shapes in matplotlib (or any other python plotting library)? It's easy to make a linestyle with different spacings and combinations of dots and dashes, but I'm after something like…
DDobie
  • 1
0
votes
1 answer

EXCEL: Round Dot LineStyle for Cell Border

Using VBA in excel for a Cell Border (not a chart): Cannot set the Borders.Linestyle property to have the round dot linestyle (see attached photo). Using .Linestyle = xlDot results in the larger, square dashes rather than the smaller round…
ericauv
  • 160
  • 16
0
votes
1 answer

Coreplot - changing data line color (during the middle of a dynamic-plot situation)

I am dynamically plotting on my iPhone from values received from a BLE module using CorePlot. I found the initializer for the CPTLineStyle class and changed the lineColor property from black to green. Currently, I am using the CPTPlainBlackTheme…
Anthony_b
  • 23
  • 6
0
votes
1 answer

Octave, barplot, linestyle none

The following code: data = rand(4, 5); figure h4 = bar(data, "stacked", "linestyle", "none"); l4 = legend("Col1", "Col2", "Col3", "Col4", "Col5"); legend(l4, "location", "northeastoutside"); produces a plot that has no lines around the rectangles,…
Rodrigo Morante
  • 103
  • 1
  • 2
  • 6
0
votes
2 answers

How to plot dark green graph with RGB indication

I want to plot a dark green and a dark green dashed graph, but unfortunately MatLab complains that the vector does not have the same length Error using plot Vectors must be the same length. Error in EasySim (line 174)…
KCordes
  • 1
  • 1
  • 1
0
votes
1 answer

Rendering DashStyle.Dot Line using Graphics.PageScale as 0.50

In Windows form, I am trying to render the Line by setting style as DashStyle.Dot by using Graphics and Graphics page scale as 0.50. But the line does not rendered in form. Please anyone suggest me on this.... refer to the below code snippet: …
0
votes
1 answer

Errorbar line missing in Matlab

The following code produces the image shown: probabilities = datasetlist(1,:); avgscores = datasetlist(2,:); x = probabilities; y = probabilities; err = avgscores; hold on for k = 1:length(x) e1 =…
swabygw
  • 813
  • 1
  • 10
  • 22
0
votes
1 answer

How to cycle through line styles in Octave while keeping same color?

My goal is to plot 2 different main functions on the same figure, but also be able to plot on top of those similar functions that relate to how those original 2 functions evolve. For example, the 1st function will be red and solid, its subsequent…
magnetar
  • 134
  • 7
0
votes
1 answer

How do I pass an array of line specifications or styles to plot?

I want to plot multiple lines with one call to plot(), with different line styles for each line. Here's an example: Both plot([1,2,3]', [4,5;6,7;8,9], {'-o', '-x'}) and hs = plot([1,2,3]', [4,5;6,7;8,9]) set(hs, 'LineStyle', {'--'; '-'}) don't…
Aralox
  • 1,441
  • 1
  • 24
  • 44
0
votes
0 answers

Matrix Semilogx linestyle and linewidth change

I need some help making some changes in the way my plot is plotted with this code. First of all, I need dark colours. I want my the lines to start from black and slowly go to dark red/purple. Scaling from black to dark red/purple smoothly. The other…
0
votes
2 answers

dot dashed line touch yaxis min and max in matplotlib

Is there a way to get a vertical dot-dashed line in matplotlib to always touch the top and bottom of the yaxis? I am drawing two vertical lines, with space between them, and I want them to touch the top and bottom of my yaxis. They touch the bottom…
grover
  • 927
  • 1
  • 10
  • 21
0
votes
2 answers

Matplotlib: getting fine solid line in addition to specified line style

I am trying to create a line figure with four different line styles. I have mean values for y axis and error for each y value. Because I want it to be all same color (black), I want to differentiate them by different line styles but with my code…
owl
  • 1,841
  • 6
  • 20
  • 30
0
votes
2 answers

How can I set the dash length in pyplot.hist?

I know the dashes length and gap size can be set in plt.plot but is there a way to do so in plt.hist? This is what my command looks like: plt.hist(x, bins=5, range=(7.,11.), facecolor='None', linestyle='dashed', linewidth=2, normed=1)
amid
  • 51
  • 5
0
votes
0 answers

Different dashtype in the same plot (Gnuplot 4.6.6)

I am using epscairo terminal. I have 10 lines in one plot and I defined line styles such as: set style line 1 linetype 1 lw 1 linecolor rgb 'black' set style line 2 linetype 2 lw 1 linecolor rgb 'black' set style line 3 linetype 3 lw 1 linecolor rgb…
nevermind
  • 129
  • 1
  • 7