diff --git a/EasyPlot/ViewModels/MainViewModel.cs b/EasyPlot/ViewModels/MainViewModel.cs
index d791170..721fc95 100644
--- a/EasyPlot/ViewModels/MainViewModel.cs
+++ b/EasyPlot/ViewModels/MainViewModel.cs
@@ -292,7 +292,19 @@ set terminal pngcairo
if (s.Title.Enabled)
builder.Append($"title \"{s.Title.Value}\" ");
- if (g.IsWithLines)
+ if (g.IsWithLines && g.IsWithPoints)
+ {
+ builder.Append("with linespoints ");
+ if (g.LineType.Enabled)
+ builder.Append($"linetype {g.LineType.Value} ");
+ if (g.LineWidth.Enabled)
+ builder.Append($"linewith {g.LineWidth.Value} ");
+ if (g.PointsType.Enabled)
+ builder.Append($"pointtype {g.PointsType.Value} ");
+ if (g.PointsSize.Enabled)
+ builder.Append($"pointsize {g.PointsSize.Value} ");
+ }
+ else if (g.IsWithLines)
{
builder.Append("with lines ");
if (g.LineType.Enabled)
@@ -300,8 +312,7 @@ set terminal pngcairo
if (g.LineWidth.Enabled)
builder.Append($"linewith {g.LineWidth.Value} ");
}
-
- if (g.IsWithPoints)
+ else if (g.IsWithPoints)
{
builder.Append("with points ");
if (g.PointsType.Enabled)
diff --git a/EasyPlot/Views/MainPage.xaml b/EasyPlot/Views/MainPage.xaml
index 70ade38..73b10a1 100644
--- a/EasyPlot/Views/MainPage.xaml
+++ b/EasyPlot/Views/MainPage.xaml
@@ -18,7 +18,7 @@
-
@@ -129,7 +129,7 @@
@@ -249,7 +249,8 @@
@@ -259,6 +260,7 @@
VerticalOptions="Center"
HorizontalOptions="Center"/>
+
+
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
+
-
-
-
-
-
-
-
+
-
-
+
-
-
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
+
+
diff --git a/EasyPlot/Views/MainPage.xaml.cs b/EasyPlot/Views/MainPage.xaml.cs
index b88463b..94c6ef5 100644
--- a/EasyPlot/Views/MainPage.xaml.cs
+++ b/EasyPlot/Views/MainPage.xaml.cs
@@ -5,7 +5,7 @@ public partial class MainPage : ContentPage
public MainPage()
{
InitializeComponent();
-
+ Application.Current!.UserAppTheme = AppTheme.Light;
}
}