@@ -10,17 +10,12 @@ object Form1: TForm1
1010 Font.Height = -11
1111 Font.Name = ' Tahoma'
1212 Font.Style = []
13- OldCreateOrder = False
1413 OnCreate = FormCreate
15- PixelsPerInch = 96
1614 TextHeight = 13
1715 object Splitter1: TSplitter
1816 Left = 489
1917 Top = 0
2018 Height = 613
21- ExplicitLeft = 528
22- ExplicitTop = 280
23- ExplicitHeight = 100
2419 end
2520 object SVGIconImage1: TSVGIconImage
2621 Left = 960
@@ -35,8 +30,6 @@ object Form1: TForm1
3530 Width = 543
3631 Height = 613
3732 AutoSize = False
38- ParentDoubleBuffered = False
39- DoubleBuffered = True
4033 Align = alClient
4134 end
4235 object PageControl1: TPageControl
@@ -46,7 +39,7 @@ object Form1: TForm1
4639 Height = 613
4740 ActivePage = TabSheet1
4841 Align = alLeft
49- TabOrder = 2
42+ TabOrder = 0
5043 object TabSheet1: TTabSheet
5144 Caption = ' matplotlib'
5245 object Panel1: TPanel
@@ -63,15 +56,14 @@ object Form1: TForm1
6356 Height = 3
6457 Cursor = crVSplit
6558 Align = alBottom
66- ExplicitTop = 10
67- ExplicitWidth = 492
6859 end
6960 object SynEdit1: TSynEdit
7061 Left = 1
7162 Top = 1
7263 Width = 479
7364 Height = 444
7465 Align = alClient
66+ CaseSensitive = True
7567 Font.Charset = DEFAULT_CHARSET
7668 Font.Color = clWindowText
7769 Font.Height = -13
@@ -85,6 +77,8 @@ object Form1: TForm1
8577 Gutter.Font.Height = -11
8678 Gutter.Font.Name = ' Consolas'
8779 Gutter.Font.Style = []
80+ Gutter.Font.Quality = fqClearTypeNatural
81+ Gutter.Bands = <>
8882 Highlighter = SynPythonSyn1
8983 Lines.Strings = (
9084 ' from delphi_module import svg_image'
@@ -102,10 +96,16 @@ object Form1: TForm1
10296
10397 ' # stores the date as an np.datetime64 with a day unit (' #39 ' D' #39 ' ) in t' +
10498 ' he date column.'
105-
106- ' price_data = (cbook.get_sample_data(' #39 ' goog.npz' #39 ' , np_load=True)[' #39 ' p' +
107- ' rice_data' #39 ' ]'
108- ' .view(np.recarray))'
99+ ' # Load Google stock price data from Matplotlib' #39 ' s sample data'
100+ ' data = cbook.get_sample_data(' #39 ' goog.npz' #39 ' )'
101+ ' '
102+ ' # Handle different return types from get_sample_data'
103+ ' if isinstance(data, np.lib.npyio.NpzFile):'
104+ ' # Already an NpzFile, access price_data directly'
105+ ' price_data = data[' #39 ' price_data' #39 ' ].view(np.recarray)'
106+ ' else:'
107+ ' # Assume data is a path or file-like object, use np.load'
108+ ' price_data = np.load(data)[' #39 ' price_data' #39 ' ].view(np.recarray)'
109109
110110 ' price_data = price_data[-250:] # get the most recent 250 tradin' +
111111 ' g days'
@@ -138,6 +138,7 @@ object Form1: TForm1
138138 ' svg_image.SvgText = figdata_svg'
139139 ' '
140140 ' #plt.show()' )
141+ ScrollbarAnnotations = <>
141142 end
142143 object Panel2: TPanel
143144 Left = 1
@@ -183,15 +184,14 @@ object Form1: TForm1
183184 Height = 3
184185 Cursor = crVSplit
185186 Align = alBottom
186- ExplicitTop = 151
187- ExplicitWidth = 433
188187 end
189188 object SynEdit2: TSynEdit
190189 Left = 1
191190 Top = 1
192191 Width = 479
193192 Height = 376
194193 Align = alClient
194+ CaseSensitive = True
195195 Font.Charset = DEFAULT_CHARSET
196196 Font.Color = clWindowText
197197 Font.Height = -13
@@ -205,6 +205,8 @@ object Form1: TForm1
205205 Gutter.Font.Height = -11
206206 Gutter.Font.Name = ' Consolas'
207207 Gutter.Font.Style = []
208+ Gutter.Font.Quality = fqClearTypeNatural
209+ Gutter.Bands = <>
208210 Highlighter = SynPythonSyn1
209211 Lines.Strings = (
210212 ' from delphi_module import svg_image'
@@ -222,6 +224,7 @@ object Form1: TForm1
222224 ' '
223225 ' #plt.show()'
224226 ' ' )
227+ ScrollbarAnnotations = <>
225228 end
226229 object Panel6: TPanel
227230 Left = 1
@@ -252,9 +255,6 @@ object Form1: TForm1
252255 end
253256 end
254257 object SynPythonSyn1: TSynPythonSyn
255- Options.AutoDetectEnabled = False
256- Options.AutoDetectLineLimit = 0
257- Options.Visible = False
258258 Left = 632
259259 Top = 40
260260 end
@@ -264,6 +264,10 @@ object Form1: TForm1
264264 Top = 89
265265 end
266266 object PythonEngine1: TPythonEngine
267+ DllName = ' python313.dll'
268+ APIVersion = 1013
269+ RegVersion = ' 3.13'
270+ UseLastKnownVersion = False
267271 IO = PythonGUIInputOutput1
268272 Left = 632
269273 Top = 136
0 commit comments