Questions tagged [hatchstyle]

HatchStyle is a built-in enumeration, available for Windows desktop apps.

HatchStyle is a built-in enumeration, available for Windows desktop apps. It defines the pattern used by HatchBrush brush. Each pattern consists of a solid background color and lines drawn over the background color. There are many variations of the patterns in this enumeration - generally, the style, direction and intensity of the lines can vary in the different patterns.

17 questions
17
votes
2 answers

Create a hatch pattern in WPF

I was able to create stripe patterns in WPF, but how can I create a pattern like this in XAML? Is there a default similar brush for this in WPF?
Vahid
  • 5,144
  • 13
  • 70
  • 146
13
votes
1 answer

How to fill a polygon with a custom hatch in matplotlib?

I'm using python and matplotlib to create several closed polygons. I then need to fill them with a hatch, which can be done through…
Josiah
  • 329
  • 4
  • 8
9
votes
1 answer

Is there a graphical overview of the HatchStyle enumeration?

A hatch pattern is made from two colors: one defined by the BackgroundColor, which fills the background and one for the lines that form the pattern over the background defined by the ForegroundColor property. The HatchStyle property defines what…
mafu
  • 31,798
  • 42
  • 154
  • 247
9
votes
1 answer

hatched rectangle patches without edges in matplotlib

When trying to add a rectangle patch with a hatch pattern to a plot it seems that it is impossible to set the keyword argument edgecolor to 'none' when also specifying a hatch value. In other words I am trying to add a hatched rectangle WITHOUT an…
5
votes
3 answers

R: using hatched fill in plots

I was using R to make some plots for a report. I see that the plots don't seem to be so smooth. I am new to R so don't know much. But how do I get smooth plots? Also by default the plots are filled with solid colors but I want to have hatched fills…
sfactor
  • 12,592
  • 32
  • 102
  • 152
5
votes
2 answers

Hatch area using pcolormesh in Basemap

I try to hatch only the regions where I have statistically significant results. How can I do this using Basemap and pcolormesh? plt.figure(figsize=(12,12)) lons = iris_cube.coord('longitude').points lats = iris_cube.coord('latitude').points m =…
5
votes
1 answer

manipulating linewidth for hatching in matplotlib

The linewidth of hatching in matplotib plots that take the hatch keyword is very thin. I found some postings from several years ago about this and a claim that a patch was made, but I still cannot figure out a way to increase the linewidth of…
2
votes
1 answer

How to hatch broken_barh on matplotlib python?

I would like to use hatching in broken_barh of matplotlib. What I want is to for different color in the plot to have different hatching pattern. I tried to add as a dictionary but wasn't successful, anyone knows what is the correct way? this is a…
Masoud
  • 25
  • 4
2
votes
0 answers

Hatch filling becomes faint in postcript matplotlib

(i) I needed to show 3 overlapping bands, which IS NOT GOOD if three colours (with controlled opacity) are used. (ii) Then I needed hatch fill_between for one band. The code is given below. (iii) Now I am facing problems with opacity of colours…
deltasata
  • 63
  • 1
  • 4
1
vote
1 answer

How to add hatches on seaborn violin plot?

If I do something like: import seaborn as sns tips = sns.load_dataset("tips") ax = sns.violinplot(x="day",…
Rafael Dias
  • 13
  • 1
  • 2
1
vote
1 answer

JavaFx create HatchStyles (something like of C# .Net)

Is there anything similar to .Net HatchStyles for filling shapes when using scene shape objects or drawing on JavaFx Canvas (in jdk, third party libraries, sample codes, etc)? The only solution I currently can think of is using an ImagePattern…
Omid
  • 5,823
  • 4
  • 41
  • 50
1
vote
0 answers

Hatch fill between while exporting in eps in matplotlib?

In matplotlib while I got error while I was trying to shade few overlapping bands with various hatches (fill_between) and to export in eps format. Is there a solution, keeping the vector format intact?
deltasata
  • 63
  • 1
  • 4
0
votes
0 answers

Matplotlib hatching with circles: How to suppress display of "truncated" circles?

By default, Matplotlib "clips" or "truncates" circles (or other symbols) displayed as hatch overlay, as illustrated in the example figure created with this code. import numpy as np from matplotlib import pyplot as plt n = 20 sig =…
angilaka
  • 41
  • 1
  • 1
0
votes
0 answers

How to achieve hatch pattern?

I want to display hatch pattern like in the below image in wpf.Is it possible to achieve this in wpf?
0
votes
1 answer

Fill DataGridView cell with Hatch Pattern

Is there any way to fill DataGridView cell with HatchPattern i C#? I tried using dataGridView1.Rows[n].Cells[m].Style, but this way i can only change backcolor of the cell.
1
2