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
1
vote
1 answer

How to make a barplot not based of labels?

I don't have a dummy code so I will try to explain it as good as I can. If no success I will try to think of a code to make it more clear. My question is regarding making a barplot. I'd like to make a plot that instead of having the traditional…
Casentive
  • 17
  • 4
1
vote
1 answer

can I make a custom linestyle in matplotlib for plot made up of multiple parallel lines

I am making a plot where I want to delineate two geological sections. To delineate I want to use three parallel dashed lines. I do not know how to make a multiline line in matplotlib. I made three sets of arrays that I offset. It looks okay but…
BrianM
  • 48
  • 6
1
vote
1 answer

VBA Conditional Formatting of specific Borders

Hej, So I am trying to use VBA to add conditonal formatting to compensate for some other coding, which changes the ranges from time to time. My problem is, that I only the conditional formatting to apply to xlEdgeRight and xlEdgeLeft. However, VBA…
cbm9000
  • 47
  • 5
1
vote
0 answers

Different linestyle in same label matplotlib

I am generating following figure with matplotlib. As you can see its two way graph, from 0 to some value for 1 side, and also same for the other side. And since both ways have the same labels, with same linestyle, I have only 2 items in…
oakca
  • 1,408
  • 1
  • 18
  • 40
1
vote
2 answers

Obtain lists of plot marker and line styles in Octave

Is there a way to programmatically obtain the list of marker and line styles available for plotting in Octave? Ideally, I would do something like mslist = whatever_function_for_marker_styles; lslist = whatever_function_for_line_styles; for i = 1:np …
1
vote
1 answer

How to generate several legends for single plot matplotlib

I was making a plot of f(x,y,z) and wanted this to be displayed in a 2D-plane. To avoid cluttering my legend i decided to have different linestyles for y, different colors for z and place the two in two separate legends. I couldn't find out how to…
1
vote
1 answer

How to Snap linestyle in Actionscript 3.0?

Hai, i am a newbie to actionscript. i am trying to make a brush tool in actionscript 3, where kids can paint colors inside a circle using the brush. i have achieved this using linestyle. Now i want the brush to snap the color when the kid is about…
Charlz
  • 11
  • 1
1
vote
1 answer

coloring multiple lines in gnuplot

I am trying to set line colors in gnuplot. I have a file with several datablocks in the usual format, separated by two empty lines. Is there a way I can set the color of each line in the plot to different colors. My graph looks like this right…
Andrew_E
  • 15
  • 3
1
vote
1 answer

Waterfall or Ribbon plot of stacked data (XRD) with color constant lines and spacing determined by another variable

I'm struggling to make a plot that I find useful with my current set of X-ray diffraction data. I have multiple x-ray scans that I'd like to place in a 3d arrangement according to a third variable. [i.e., compare the theta-two-theta (x,y) measured…
AllenH
  • 577
  • 1
  • 4
  • 13
1
vote
1 answer

MatPlotLib Python - RGB values from color sensor used to change color of line point

So I'm working with a TCS3200 color sensor and Arduino Mega 2560 to generate specific RGB values. Then, through the serial cable, I'm sending data to VIDLE for Python, splitting the 3 data points, and storing them in an array (updating the…
1
vote
2 answers

Plot lines that end with a square bracket

My goal: plot a horizontal line with a square bracket (---]) end to it. I usually plot horizontal lines with line([0,1],[2,2],'linestyle',':') I can add usual markers at the end by plot([0,1],[2,2],'o') but not square bracket. Any suggestions?
Amir Sagiv
  • 376
  • 5
  • 23
1
vote
2 answers

ActionScript - Clearing Graphics With JointStyle.MITER Bug?

I've come across an undesirable effect of using JointStyle.MITER when clearing/redrawing graphics. My project involves managing custom line graphics with both round and sharp edges, which is why I would like to use a miter joint style. When the line…
Chunky Chunk
  • 16,553
  • 15
  • 84
  • 162
1
vote
1 answer

Plotting matrices and defining a LineStyle for i.e. every 3rd line

In my Code I use plot(x,y) where x and y are 16x12 matrices. Now I want to define style rules like for example 'the first two lines should be red, then two lines blue' or 'every 3rd line should be LineStyle --'.... I thought of defining a LineStyle…
Max
  • 1,471
  • 15
  • 37
1
vote
2 answers

Set the space size of matplotlibs linestyle "dashed"

Is there any way to set the space size/thickness between consecutive dashes when plotting using the linestyle "dashed"? What I am looking for is to have the freedom to plot using the following linestyles: ----- - - - - - - - …
The Dude
  • 3,795
  • 5
  • 29
  • 47
1
vote
1 answer

maple: How to show two lines on each other in a plot?

I am plotting two functions, which have very little difference from each other. When plotting with maple, considering my precision (12 digits), the plot shows one line. I know this is normal, but I want to show both lines as below: the first one…
shadi
  • 127
  • 2
  • 6