Ethscriptions commited on
Commit
85ab6f1
·
verified ·
1 Parent(s): 1878cfc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -3
app.py CHANGED
@@ -150,15 +150,31 @@ def create_print_layout(data, date_str):
150
  fontsize=movie_font_size, ha='right', va='top', fontproperties=movie_font,
151
  transform=ax.transAxes, zorder=2)
152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
  y_position -= line_spacing
154
  movie_count += 1
155
 
156
  y_block_bottom = y_position
157
  y_position -= line_spacing
158
  rect = FancyBboxPatch((0.03, y_block_bottom), 0.94, y_block_top - y_block_bottom,
159
- boxstyle="round,pad=0.005,rounding_size=0.005",
160
- edgecolor='gray', facecolor='white',
161
- linewidth=0.8, zorder=1, transform=ax.transAxes)
162
  ax.add_patch(rect)
163
 
164
  # 处理PNG图形
 
150
  fontsize=movie_font_size, ha='right', va='top', fontproperties=movie_font,
151
  transform=ax.transAxes, zorder=2)
152
 
153
+ # --- Start of added code ---
154
+ # Calculate vertical position for the dotted line, centered in the row
155
+ line_y = y_position - (line_spacing * 0.4)
156
+
157
+ # Dotted line between hall number and movie title
158
+ if movie_count == 1:
159
+ ax.plot([0.1, 0.18], [line_y, line_y],
160
+ linestyle='dotted', color='gray', linewidth=1,
161
+ transform=ax.transAxes, zorder=1)
162
+
163
+ # Dotted line between movie title and time
164
+ ax.plot([0.65, 0.85], [line_y, line_y],
165
+ linestyle='dotted', color='gray', linewidth=1,
166
+ transform=ax.transAxes, zorder=1)
167
+ # --- End of added code ---
168
+
169
  y_position -= line_spacing
170
  movie_count += 1
171
 
172
  y_block_bottom = y_position
173
  y_position -= line_spacing
174
  rect = FancyBboxPatch((0.03, y_block_bottom), 0.94, y_block_top - y_block_bottom,
175
+ boxstyle="round,pad=0.005,rounding_size=0.005",
176
+ edgecolor='gray', facecolor='white',
177
+ linewidth=0.8, zorder=1, transform=ax.transAxes)
178
  ax.add_patch(rect)
179
 
180
  # 处理PNG图形