Skip to main content
Commonmark migration
Source Link

#Mathematica, 63 94 103 bytes

Mathematica, 63 94 103 bytes

When I first saw this challenge, I thought Sweet! Mathematica would be perfect for this! until I noticed that built-ins were banned :'(

But wait! I can use bar graphs!

r=RGBColor;BarChart[{1,1,1},ChartStyle->{r@"#0055a4",White,r@"#ef4135"},BarSpacing->0,AspectRatio->2/3]

(Thanks to Martin Büttner for shaving off 5 bytes but adding 16)

Looks like this:

enter image description here

If you add ,Axes->None it looks like this:

enter image description here

If you don't care about the border, you can use this: (95 bytes)

r=RGBColor;BarChart[{1,1},ChartStyle->{r@"#0055a4",r@"#ef4135"},BarSpacing->1,AspectRatio->2/3,Axes->None]

Looks like this:

enter image description here

Without axes:

enter image description here

#Mathematica, 63 94 103 bytes

When I first saw this challenge, I thought Sweet! Mathematica would be perfect for this! until I noticed that built-ins were banned :'(

But wait! I can use bar graphs!

r=RGBColor;BarChart[{1,1,1},ChartStyle->{r@"#0055a4",White,r@"#ef4135"},BarSpacing->0,AspectRatio->2/3]

(Thanks to Martin Büttner for shaving off 5 bytes but adding 16)

Looks like this:

enter image description here

If you add ,Axes->None it looks like this:

enter image description here

If you don't care about the border, you can use this: (95 bytes)

r=RGBColor;BarChart[{1,1},ChartStyle->{r@"#0055a4",r@"#ef4135"},BarSpacing->1,AspectRatio->2/3,Axes->None]

Looks like this:

enter image description here

Without axes:

enter image description here

Mathematica, 63 94 103 bytes

When I first saw this challenge, I thought Sweet! Mathematica would be perfect for this! until I noticed that built-ins were banned :'(

But wait! I can use bar graphs!

r=RGBColor;BarChart[{1,1,1},ChartStyle->{r@"#0055a4",White,r@"#ef4135"},BarSpacing->0,AspectRatio->2/3]

(Thanks to Martin Büttner for shaving off 5 bytes but adding 16)

Looks like this:

enter image description here

If you add ,Axes->None it looks like this:

enter image description here

If you don't care about the border, you can use this: (95 bytes)

r=RGBColor;BarChart[{1,1},ChartStyle->{r@"#0055a4",r@"#ef4135"},BarSpacing->1,AspectRatio->2/3,Axes->None]

Looks like this:

enter image description here

Without axes:

enter image description here

Added more pictures and versions.
Source Link
DanTheMan
  • 4.1k
  • 16
  • 41

#Mathematica, 63 9494 103 bytes

When I first saw this challenge, I thought Sweet! Mathematica would be perfect for this! until I noticed that built-ins were banned :'(

But wait! I can use bar graphs!

BarChart[r=RGBColor;BarChart[{1,1,1},ChartStyle->{RGBColor["#0055a4"]r@"#0055a4",White,RGBColor["#ef4135"]r@"#ef4135"},BarSpacing->None]>0,AspectRatio->2/3]

(Thanks to Martin Büttner for shaving off 5 bytes but adding 16)

Looks like this:

enter image description hereenter image description here

If anybody knows of any options for making the axes go away, let me know! Also, how do I "rename" symbols?you add RGBColor,Axes->None is too long.it looks like this:

enter image description here

If you don't care about the border, you can use this: (95 bytes)

r=RGBColor;BarChart[{1,1},ChartStyle->{r@"#0055a4",r@"#ef4135"},BarSpacing->1,AspectRatio->2/3,Axes->None]

Looks like this:

enter image description here

Without axes:

enter image description here

#Mathematica, 63 94 bytes

When I first saw this challenge, I thought Sweet! Mathematica would be perfect for this! until I noticed that built-ins were banned :'(

But wait! I can use bar graphs!

BarChart[{1,1,1},ChartStyle->{RGBColor["#0055a4"],White,RGBColor["#ef4135"]},BarSpacing->None]

Looks like this:

enter image description here

If anybody knows of any options for making the axes go away, let me know! Also, how do I "rename" symbols? RGBColor is too long.

#Mathematica, 63 94 103 bytes

When I first saw this challenge, I thought Sweet! Mathematica would be perfect for this! until I noticed that built-ins were banned :'(

But wait! I can use bar graphs!

r=RGBColor;BarChart[{1,1,1},ChartStyle->{r@"#0055a4",White,r@"#ef4135"},BarSpacing->0,AspectRatio->2/3]

(Thanks to Martin Büttner for shaving off 5 bytes but adding 16)

Looks like this:

enter image description here

If you add ,Axes->None it looks like this:

enter image description here

If you don't care about the border, you can use this: (95 bytes)

r=RGBColor;BarChart[{1,1},ChartStyle->{r@"#0055a4",r@"#ef4135"},BarSpacing->1,AspectRatio->2/3,Axes->None]

Looks like this:

enter image description here

Without axes:

enter image description here

added 98 characters in body
Source Link
DanTheMan
  • 4.1k
  • 16
  • 41

#Mathematica, 6363 94 bytes

When I first saw this challenge, I thought Sweet! Mathematica would be perfect for this! until I noticed that built-ins were banned :'(

But wait! I can use bar graphs!

BarChart[{1,1,1},ChartStyle->{RedRGBColor["#0055a4"],White,BlueRGBColor["#ef4135"]},BarSpacing->None]

Looks like this:

enter image description hereenter image description here

If anybody knows of any options for making the axes go away, let me know! Also, how do I "rename" symbols? RGBColor is too long.

#Mathematica, 63 bytes

When I first saw this challenge, I thought Sweet! Mathematica would be perfect for this! until I noticed that built-ins were banned :'(

But wait! I can use bar graphs!

BarChart[{1,1,1},ChartStyle->{Red,White,Blue},BarSpacing->None]

Looks like this:

enter image description here

If anybody knows of any options for making the axes go away, let me know!

#Mathematica, 63 94 bytes

When I first saw this challenge, I thought Sweet! Mathematica would be perfect for this! until I noticed that built-ins were banned :'(

But wait! I can use bar graphs!

BarChart[{1,1,1},ChartStyle->{RGBColor["#0055a4"],White,RGBColor["#ef4135"]},BarSpacing->None]

Looks like this:

enter image description here

If anybody knows of any options for making the axes go away, let me know! Also, how do I "rename" symbols? RGBColor is too long.

Source Link
DanTheMan
  • 4.1k
  • 16
  • 41
Loading