diff --git a/chart/charts.py b/chart/charts.py index 35378d9..f4c8d24 100644 --- a/chart/charts.py +++ b/chart/charts.py @@ -4971,7 +4971,7 @@ def Comparison_with_Bar_Chart_3(file_path, char_out_path, out_path, title, capti }} dev.off() - png("{out_path}.png") + png("{out_path}.png",width=900,height=540) par(omi=c(0.5,0.5,1.1,0.5),las=1) layout(matrix(data=c(1,2,3,4,5),nrow=1,ncol=5),widths=c(2.0,1,1,1,1),heights=c(1,1)) pos<-c(45,45,45,45,35) diff --git a/file_keep/eg_file/img/Deviation_Dots.csv b/file_keep/eg_file/img/Deviation_Dots.csv new file mode 100644 index 0000000..8174bcc --- /dev/null +++ b/file_keep/eg_file/img/Deviation_Dots.csv @@ -0,0 +1,33 @@ +car name,mpg_z,mpg_type +Mazda RX4,-1.9,Below +Mazda RX4 Wag,-1.88,Below +Datsun 710,-1.75,Below +Hornet 4 Drive,-1.62,Below +Hornet Sportabout,-1.5,Below +Valiant,-1.38,Below +Duster 360,-1.25,Below +Merc 240D,-1.12,Below +Merc 230,-1,Below +Merc 280,-0.88,Below +Merc 280C,-0.75,Below +Merc 450SE,-0.62,Below +Merc 450SL,-0.5,Below +Merc 450SLC,-0.38,Below +Cadillac Fleetwood,-0.25,Below +Lincoln Continental,-0.12,Below +Chrysler Imperial,0,Above +Fiat 128,0.12,Above +Honda Civic,0.25,Above +Toyota Corolla,0.38,Above +Toyota Corona,0.5,Above +Dodge Challenger,0.62,Above +AMC Javelin,0.75,Above +Camaro Z28,0.88,Above +Pontiac Firebird,1,Above +Fiat X1-9,1.12,Above +Porsche 914-2,1.25,Above +Lotus Europa,1.38,Above +Ford Pantera L,1.5,Above +Ferrari Dino,1.62,Above +Maserati Bora,1.75,Above +Volvo 142E,1.9,Above diff --git a/static/img_eg/example_chart/Deviation_Dots.png b/static/img_eg/example_chart/Deviation_Dots.png new file mode 100644 index 0000000..9b8e69e Binary files /dev/null and b/static/img_eg/example_chart/Deviation_Dots.png differ diff --git a/static/img_eg/show_index_chart/Deviation_Dots.png b/static/img_eg/show_index_chart/Deviation_Dots.png new file mode 100644 index 0000000..9b8e69e Binary files /dev/null and b/static/img_eg/show_index_chart/Deviation_Dots.png differ