Skip to content

Commit b9bc777

Browse files
committed
1.0.1 - Updated the FM-layer functionality to support bar plots
1 parent c9c7138 commit b9bc777

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changes
22

3+
## Version 1.0.1
4+
5+
_2025-12-15_
6+
7+
- Add "FM-Grid" to the FM-layers
8+
39
## Version 1.0.0
410

511
_2025-11-25_

mpldxf/backend_dxf.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def _create_fm_layers(self, drawing):
120120
"FM-Depth": 1, # Red - Y-axis values (depth/elevation)
121121
"FM-Value": 8, # Grey - X-axis values
122122
"FM-Text": 2, # Yellow - axis labels and other text
123+
"FM-Grid": 7, # Light Blue - grid lines
123124
}
124125

125126
for layer_name, color in fm_layers.items():
@@ -149,10 +150,14 @@ def _determine_element_layer(self):
149150
if not self.use_fm_layers:
150151
return "0"
151152

152-
# Check if ANY active group has method_symbol gid
153+
# Check if ANY active group has gid for FM layers
153154
for group_name in self._groupd:
154-
if self._group_gids.get(group_name) == "method_symbol":
155+
if self._group_gids.get(group_name) == "FM-Method":
155156
return "FM-Method"
157+
if self._group_gids.get(group_name) == "FM-Grid":
158+
return "FM-Grid"
159+
if self._group_gids.get(group_name) == "FM-Frame":
160+
return "FM-Frame"
156161

157162
if not self._groupd:
158163
return "0"
@@ -199,7 +204,7 @@ def _determine_text_layer(self, text_content, fontsize):
199204

200205
# Check if ANY active group has method_symbol gid
201206
for group_name in self._groupd:
202-
if self._group_gids.get(group_name) == "method_symbol":
207+
if self._group_gids.get(group_name) == "FM-Method":
203208
return "FM-Method"
204209

205210
context_str = " ".join(self._groupd).lower() if self._groupd else ""

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "mpldxf"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
description = "A fork of mpldxf - a matplotlib backend to write DXF drawings. Modified by NGI to handle geotechnical plots"
55
authors = ["David Kent",
66
"Jon-Michael Josefsen <[email protected]>",

0 commit comments

Comments
 (0)